Linux basic commands -head

head command

head command is used to display the contents of the beginning of the file. By default, head command displays the first 10 lines of the file contents.

grammar

head (option) (parameters)
Options
-n <number> : Specifies the number of lines to display the contents of the head;
 -c <number of characters> : Specifies the number of characters head of the content display;
 - v: Always display the header information of the file name;
 -q: does not display the file name the header information.

parameter

File List: List the contents of the specified file header is displayed.

Guess you like

Origin www.cnblogs.com/lj7xun/p/10983325.html