head command
action: front view of a file n rows, where n if not specified, the default is to display 10 lines before.
Syntax: $ head -n file path, [n] represents a number
tail command
action: See the end of a file of n rows, if n is not specified the default display 10 lines
Usage: $ tail -n file path represented by the same number n
Role 2:
You can view a document by the tail command changes the dynamic
syntax:
$ mail -f file path
3.less command
role: to view the file, the file content with less output, see more in the following auxiliary function keys (digital + Enter, Spacebar, up and down keys)
Syntax: $ less need to see the file path of
wc command
role: for the statistics file content information
(including the number of lines, number of words, number of bytes)