명령어 설명
파일의 마지막 줄 부터 얼마를 출력한다.
사용법 및 옵션
사용법
tail [옵션] 파일이름
* 디버깅을 할 때 유용한 명령어
옵션
tail 옵션 | 기능 |
-c --bytes | 입력한 byte 만큼 표시 |
-f --follow | 새로 추가될 때 마다 표시 |
-n --lines | 입력한 라인 수 만큼 표시 |
-q --quiet | 파일이름 표시 X |
-v --verbose | 파일이름 표시 O |
* -b, -v, -i, -f 등의 옵션은 공통 옵션으로, 대부분의 명령어에서 공통적으로 사용할 수 있다.
반응형
'리눅스 > 기본 명령어 모음' 카테고리의 다른 글
less 명령어 - opposite of more (0) | 2021.01.04 |
---|---|
grep 명령어 - print lines matching a pattern (0) | 2021.01.04 |
head 명령어 - output the first part of files (0) | 2021.01.04 |
cat 명령어 - concatenate files and print on the standard output (0) | 2021.01.04 |
ln 명령어 - make links between files (0) | 2021.01.04 |
댓글