1. Cat Action and Usage:
Cat [-option] File name
NAME
cat-concatenate files and print on the standardized output connection file and display standard outputs
-N Displays the contents of the file with line numbers.
-e Displays end-of-line terminator for each line
-T Display tab
-A Show All content
The TAC is displayed from the tail line to the first line.
2, more role and usage:
More [-option] file name
NAME
More-file perusal filter for CRT viewing split screen view file contents
more/etc/passwd
3. Less effect and usage:
Less [-option] file name
NAME
Less-opposite of more
4. Head function and Usage:
Head [-option] file name
NAME
Head-output the first part of the files output shows the previous lines
-N Displays the first n rows, showing the first 10 rows by default
5. Tail function and Usage:
tail [-option] File name
NAME
Tail-output the last part of the files output shows the following lines
-N Displays the following n rows, showing the following 10 rows by default
-F View the end of the file does not exit the view status, waiting to display the next append to this file new content, press CTRL + C exit
This article is from the "Learn Linux history" blog, please be sure to keep this source http://woyaoxuelinux.blog.51cto.com/5663865/1859312
Linux common Commands--cat, more, less, head, tail