Summary of common Linux commands
1. compression and decompression
1.rar package
Compression Process: file name .rar to be compressed after RAR
Decompression process: unrar X files to be decompressed
2. Zip
Compression Process: zip file name. ZIP file to be compressed
Decompression process: unzip files to be decompressed
Ii. Rename
The original MV file name is a new file name.
3. delete files or folders
Rm-RF file (folder) Name
Iv. VI operations
1. Press I in edit mode. After the modification is complete, Press ESC to enter browse mode. Then enter ": WQ" to save and exit.
2. to exit in browsing mode, enter ": Q"
3. If you modify the file content but do not want to save it, force exit and enter ": Q! "
5. Create a folder
Mkdir folder name
6. Copy files
1. Basic command: CP source dest
2. If you want to copy a folder, add the parameter-R, for example:
CP-r chbtmp/OPT
VII. transfer documents
MV file dest
Note: The same command is used to rename the transfer object and object. If SRC and DEST are in the same directory, the command is renamed. Otherwise, the command is used to rename the transfer object, for example, to transfer the CHB folder under the/root directory to the/OPT folder, use:
Mv chb/OPT
8. Get the current directory
Command: pwd