head, tail, less, wc instruction

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
Here Insert Picture Description

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
Here Insert Picture Description

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

Here Insert Picture Description
wc command
role: for the statistics file content information
(including the number of lines, number of words, number of bytes)
Here Insert Picture Description

Published 36 original articles · won praise 26 · views 7591

Guess you like

Origin blog.csdn.net/weixin_43566977/article/details/90174503