One: Linux basic command:
1. Find command finds files such as Find/-name hello to find the file under the name of hello in the root directory.
2. grep command string matches such as grep "Lucy" *-r recursive lookup file containing "Lucy" string file
3. Du command to view the volume of the file
4. > redirect the standard output from the screen to the savels file like ls > savels redirect ls
5, >> attached as LS >> savels will be the result of LS attachment to the savels. If you use > will be to overwrite the file directly.
Two: Vim shortcut key:
1, I insert before the cursor at the beginning of the cursor
2, a after the cursor insert a at the end of the cursor line inserted
3. o Insert the row below the line where the cursor is inserted.
4, 0 move the cursor to the beginning of the line $ move the cursor to the end
5.-Move the cursor to the beginning of the previous line, + move the cursor to the beginning of the next line
6. GG moves the cursor to the beginning of the first line G moves the cursor to the beginning of the last line
7, U revoke ctrl+r anti-revocation
8. Shift+v Visible Line Ctrl +V Visual block
9, bulk increase the first visual block to select the area to increase, capital I input the content to be added, and finally press two times ESC.
10, command line mode input sp+ file name can open two files at the same time, using the ctrl+w+ key or the next key to switch
Day Nineth: Linux basic commands (ii) and C compilation process