명령어 설명
파일의 첫번째 줄 부터 얼마를 출력한다.
사용법 및 옵션
사용법
head [옵션] filename
* 기본 10줄 출력
옵션
head 옵션 | 기능 |
-c --bytes |
입력한 byte 만큼 표시 |
-n --lines | 위에서 n개의 라인 출력 |
-q --quiet | 파일이름 출력 X (기본상태) |
-v --verbose | 파일이름 출력 O |
* -b, -v, -i, -f 등의 옵션은 공통 옵션으로, 대부분의 명령어에서 공통적으로 사용할 수 있다.
반응형
'리눅스 > 기본 명령어 모음' 카테고리의 다른 글
grep 명령어 - print lines matching a pattern (0) | 2021.01.04 |
---|---|
tail 명령어 - output the last 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 |
cp 명령어 - copy files and directories (0) | 2021.01.03 |
댓글