Let's take a look at some common shell tips.
CTRL + u Delete the cursor to the beginning of the current row
CTRL + k Delete the cursor position to the end of the current row
CTRL + a move the cursor to the beginning of the current row
CTRL + e move the cursor to the end of the current row
!! Repeat the previous command
Which executable file path search
Find [path] [parameter] [expression]
Find/etc/-name passwd find the passwd file under/etc
Find.-Name '*. conf'-exec CP {}{}. orig \; find all. conf files in the current directory and copy them. Add. orig to the filename suffix. ({} Is the search result, \; indicates that the command is terminated)
Find is very powerful, you can try it by yourself, various parameters-ctime,-user,-Perm,-type... and so on
Grep-I case-insensitive
-N print the row number
-V reverse matching
-A 5: displays the first five rows of the row.
-B 5: The last five rows of the row are displayed.
Awk-f \ t' {print $0> FILENAME "." $2} 'file is divided into multiple files by the second column