1. more $ less
More is similar to liss, for example.
Mkdir temp
Cd temp
Touch
Cat a | more/less
The long results of the first command are displayed by page.
2 cat & paste
Both cat and paste can display the content of the merged text file, but the difference between the two is that the content of the two text files is arranged in rows, paste is to sort the content of two text files in columns and a tab character is used between each column.
Assume that two text files 1 and 2 contain characters a and B respectively. Cat 1 2> 3 the content in 3 is:
B
Pasete 1 2> 3. The content in 3 is a B.
3 tail & head
These two commands are relatively simple
Tail-5 a displays the last five rows in file a. It can also display only five rows of head-5 a in file.
4 grep & find
These two commands are used to search for matched traveling line output in the file.
The Grep-I yuxianglong temp command is to find the complete path of the directory of the yuxianglong string in the temp file and print it to the screen. -I is a parameter, case insensitive.
Find Path Matching condition
For example, find/-name ls.txt and find the file named ls.txt in the root directory.