I. Compression and decompression
1.rar Package
Compression process: RAR A compressed file name. rar to be pressed
Decompression process: Unrar x to extract files
2.zip
Compression procedure: Zip-Compressed file name. zip pending files
Decompression process: Unzip to extract files
Two. renaming
MV Original filename new filename
Three. delete files or folders
RM-RF file (folder) name
Four. Operation of VI
1. Enter edit mode Press I, modify complete press ESC to enter browse mode, then enter ": Wq" Save and exit
2. To exit in browse mode, enter ": Q" directly
3. If you modify the contents of the file, but do not want to save, forced to quit, enter ": q!"
Five. Create a folder
mkdir folder name
Six. copy files
1. Basic command: CP source Dest
2. If you want to copy a folder, add parameter-R, such as:
Cp-r chbtmp/opt
Seven. Transfer of documents
MV File Dest
Note: the transfer file and file rename with the same command, if SRC and dest in the same directory, then rename, otherwise that is the transfer file, such as the/root directory under the ChB folder to the/opt folder, use:
MV Chb/opt
Eight. Get current directory
Command: PWD