1. Decompression algorithm: Using the GZIP algorithm for decompression, compression syntax: gzip filename decompression Syntax: GZIP-DV filename
2. Decompression algorithm: Using the BZIP2 algorithm for decompression, compression syntax: bzip2 filename decompression syntax: BZIP2-DV filename
3. Decompression algorithm: Using the ZIP algorithm for decompression, compression syntax: Zip file.zip filename, where file.zip is the specified compression name decompression syntax: Unzip
4. Packaging command: Tar packaging: tar-cvf file.tar dir, where File.tar is the specified package name, C is packaged, V is the display packaging process, F is the specified package file unpacking: TAR-XVF File.tar, where x is the unpacking
5. Edit the file: Vim enters insert mode: VIM filename enters command mode: ESC exits editor and does not save: q! Exit Editor and save file: Wq or Shift+z+z
6. Edit text in vim Command mode: Add text to the right of the current cursor: A adds text to the left of the current cursor: I add text at the end of the current line: A adds text at the beginning of the current row: I Add a line above the current line: O Add a line below the current line: O Replace the text at the current cursor and the following position: R merges the row of the cursor and the next line of behavior: J
7. Edit text in vim command mode to move the cursor: Use the next key to move the cursor to the left: H or BACKSPACE key to the right: L or spacebar up: K down: J moves to the next line: Enter to move to the top of the line:-
8. Edit text in vim command mode to delete/restore characters or lines: Delete the current character: x delete the n characters starting at the cursor position: NX Deletes the current line: DD drops the current line in n rows: Ndd undo previous action: U Undo all operations on the current line: U
9. Edit text in vim command mode search: Search for str string under cursor:/STR search the cursor for the STR string:? str searches down the previous search action: N searches for the previous search action: n
10. Edit text in vim command mode to jump to the specified line: Jump down N rows: n+ jumps up n rows: N-jumps to rows with N: NG jumps to the bottom of the file: G
11. Edit the text in vim command mode set line number: Set the line number: The Set Nu cancellation line number: Set Nonu
12. Edit text in vim command mode copy paste: Copy the current line to buffer: yy, can also use ayy,a as buffer, a can also be replaced with any letter of A--z, complete multiple replication tasks to copy the current row down n rows to the buffer: Nyy, you can also use Anyy copy copy from the cursor start To the ending: YW copy n words starting from the cursor: NYW Copy the contents from the cursor to the beginning of the line: y^ Copy the contents from the cursor to the end of the row: y$ paste the contents of the buffer after the cursor: p Paste the contents of the buffer before the cursor: p
13. Edit the text of the VIM command mode substitution: Replace the first occurrence of old:s/old/new in the row with new to replace all occurrences of the old:s/old/new/g in the row with new
Replace the Old:n,m s/old/new/g in the N-M row with new replaces all old in the text with new:%s/old/new/g
14. Mount the optical drive to the MNT directory: mount/dev/cdrom/mnt
15. Install the Software Yum Command (networked installation): Empty yum Source: Yum Clean all load yum Source: Yum repolist all automatic installation: yum-y install software name
16. Install the Software RPM command (Local installation): rpm+ parameters Common Parameters: Install the application: I (install) uninstall the application: E (Erase) display the installation progress: VH (verbose hash) upgrade package: U (update)
Show Installed packages: QA (query all), combined with grep command
17. File Upload: Alt+p, can only be uploaded to the root directory
Some simple commands for Linux (iii)