Skip to content
Snippets Groups Projects
Commit 28ce8ad1 authored by 한소진's avatar 한소진
Browse files

Update linux.md

parent 38daa954
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,37 @@
### 파일, 디렉토리 관련 명령
1. cd, pwd, mkdir, rmdir
1. cat - 파일 보는 명령
1. more - 파일을 한페이지씩 보는 명령
- cd, pwd, mkdir, rmdir
- cat - 파일 보는 명령
- more - 파일을 한페이지씩 보는 명령
- ls : 현재 작업하는 디렉토리에 무슨 파일이 있는지 보여주는 명령어
- ls -a : 숨겨준 파일도 보여줌 -> 파일명이 .으로 시작하면 숨겨진 파일
- . : 현재 디렉토리
- .. : 상위 디렉토리
- man : 메뉴얼
- touch : file 만들기
- cp A B :a를 b에 카피
### link _ hardlink & softlink(=symoblic link)
- ```ln, ln -s```
- hardlink
: 원본 파일도 같이 수정됨
: inode도 번호 동일 (ls -i, ls -li, ls -ali로 볼 수 있음)
- softlink
: inode 다름
: byte 수가 slink 된 파일길이 만큼
: 내용은 동일하게 담기더라
#### 시험에 나온대
home directory는 /etc/passwd 파일에서 지정
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment