head - command in linux
head command is used to print first 10 lines of the file to terminal
syntax
head [filename with path]
example
MyPrompt:/var/log> head dmesg
options
Option | Description |
---|---|
-c, --bytes=[-]K | display the first K bytes of each file; with the leading '-' |
-n, --lines=[-]K | display the first K lines instead of the first 10; with the leading '-' |
-q, --quiet, --silent | it will never displays headers giving file names |
-v, --verbose | always display headers giving file names |
--help | displays help information |
--version | displays version information |