디렉토리 만드는 명령어
mkdir directory-name
파일 만드는 명령어
touch file-name
파일 내용 작성하는 명령어 : vim → i(insert)로 내용 작성 → ESC → :wq!
vim file-name
파일의 내용을 출력해주는 명령어 : cat ( = concatenate)
cat file-name
디렉토리 내부 파일 내용 확인 명령어
현재 디렉토리에 있는 내용 출력 명령어
ls
숨김 파일이나 디렉토리도 보여주는 명령어
ls -al
자세한 내용 출력 명령어
= 권한, 포함된 파일 수, 소유자, 그룹, 파일 크기, 수정일자, 파일 이름
ls -l
파일 크기 순으로 정렬하여 출력하는 명령어
ls -S
알파벳 순서 거꾸로 출력하는 명령어
ls -r
지정된 크기의 파일 용량을 만드는 명령어
mkfile [용량 크기] file-name
작업 권한 변경 명령어
chmod rwx [file or directory]
ex. test.txt 라는 파일의 권한을 rwxrw-r-- 로 설정하려면
chmod 764 test.txt
파일 또는 디렉토리 날짜 변경 명령어
touch -mt yyyymmddttmm
폴더 또는 파일 압축 명령어
tar -cf file-name.tar file-name
모든 폴더 또는 파일 압축 명령어
tar -cf file-name.tar *
압축 해제 명령어
tar -xvf testshell00.tar