Common Linux commands
1. linux cyclic cp file to the new directory
For I in 'LS'
Do
Cp $ I/usr
Done
2. linux compresses all files in a directory cyclically
For I in 'LS'
Do
Cp ii.tar.gz/path
Done
Note: Do not enter the two symbols next to the ls. the notebook is a key on the left of the number key 1, with a wavy line.
3. scp exaggerated server cp File
Scp backup file path username @ ip:/home
4. commands for restoring mysql Databases in linux
Mysql-u root-p database name
Press enter and you may see that the cursor has been flashing. This indicates that the database is being restored. Sometimes we want to execute a command to let him execute it in the background. Because the database is too large, we cannot wait for it all the time, directly disabling SecureCRTPortable will interrupt the execution of the command. At this time, we only need to execute the bg command.
Run the BACKUP command above. Press enter and the cursor is flashing,
Then press Ctrl + z to stop the command,
Then bg is enough.
Bg puts the task in the background for processing