Tar Package
tar-cvf/test/abc.tar/test/* #打包, first write the name of the tar package, write the content to be packaged, if the absolute path is written, then the Directory page will be packaged in
TAR-CVZF #调用gunzip Compressed Tar Package
TAR-TF Abc.tar #查看tar包
TAR-XVF abc.tar-c/test/#-c Specify the decompression path
CP #命令不适合备份文件, takes up too many files
Vim
command line mode common commands: G jumps to the end of the line, GG jumps to the beginning, $ jumps to the end of the line, 0 jumps to the beginning
Copy 3 lines, press 3 and then YY
Digital +yy Copy several lines
Digital +p Paste a few lines
Number +DD Delete a few lines, after DD +p equivalent to cut operation
10+g Jump To Line 10
U undo
Ctrl+r forward
/Find n View next find content
Vim three states: command line Edit extension
Vim Extended State:
:%s/python/python/g% Global change, changing Python to Python,g includes second, third, and so on each line
Start level
Vim/etc/.inittab
Init 0 shutdown
Init 6 Restart
Shutdown-h now shutdown
Single-User mode
Restart, select the interface by E,
Add a init=/bin/sh to the back.
Delete RHGB Qu\iet
CTRL + X
Remember to add, make sure to change the password successfully
System hangs on another system disk, set boot Select boot, select rescue mode, do not point skip, point to continue,
Chroot/mnt/sysimage then change the password to restart boot mode.
Linux Basic Knowledge PART3