1️⃣ filesystem 종류
ext3, ext4, xfs : Linux
NTFS, FAT : Window
2️⃣ ls 옵션
-l : 상세 설명
-t : 파일&디렉토리 시간 순서대로 나열
-r : 사이즈를 내림차순으로 나열
-a : 숨겨진 파일 포함 목록 확인
-i : inode 확인
3️⃣ 기본 명령어
whoami -> 사용자 이름 출력
pwd -> 현재 디렉토리 위치 알려줌
whatis -> 명령어에 대한 간단한 설명
man -> 명령어에 대한 온라인 메뉴얼 설명
(command) --help -> 정의+옵션
echo -> 파일 내용 추가
ex) echo "메세지" > 파일이름
cat -> 파일 내용 출력
4️⃣ 생성 (파일&디렉토리)
1) 파일
- touch
- cp
- vi
2) 디렉토리
- mkidir
5️⃣ 상태변화 (파일&디렉토리)
1) 파일
- cp : 복사
- rm : 제거
- mv : 위치 이동 + 이름 변경
2) 디렉토리
- rmdir or rm -r : 제거
- mv : 위치 이동 + 이름 변경
ex) mv /현재/경로/디렉토리 /새로운/경로/
6️⃣ 권한 (파일&디렉토리)
- chmod
: 권한 변경 시, 사용
ex) chmod [(g,u,o,a)+(r,w,x)] [변경할 디렉토리&파일]
cf. r=4, w=2, x=1
- chown
: 소유주 변경 시, 사용
(소유주 다(파일, 디렉토리) 가능)
ex) chown [소유주]:[그룹] [변경할 디렉토리]
- chgrp
: 그룹만 변경 시, 사용
ex) chgrp [그룹] [변경할 파일]
* chmod 추가 설명
r=read, w=write, x=excute
u=user, g=group, o=other, a=all
<옵션>
-R : 하위 디렉토리에도 적용
-v : 변경되는 오브젝트 이름 출력
-f : 오류가 발생해도 다른 오브젝트에 적용 진행
7️⃣ softlink & hardlink
1) 정의
inode = Pointer or number of a file on the hard disk
soft link = Link will be removed if file is removed or renamed
소스 파일을 삭제하거나 변경하면 소프트링크에 영향을 미침
hard link = Deleting renaming or moving the original file will not affect the hard link
2) 생성 및 확인
* 생성
ln = hardlink
ln -s = Symbolic link
cf) 다른 파티션과 링크를 걸 수 있는 것 : 심볼릭 링크
* inode 확인
ls -li

1) Standard input (stdin) and it has file descriptor number as 0
- ' < ' : 파일 내용을 읽어 출력
2) Standard output (stdout) and it has file descriptor number as 1
- ' > ' : 명령어 뒤에 나오는 파일에 쓸 때 사용 + 없을 시 생성
- ' >> ' : 명령어 뒤에 나오는 파일에 추가할 때 사용
3) Standard error (stderr) and it has file descriptor number as 2