1. Compression decompression command: gzip,. gz format
The gzip file name is compressed.
Linux compressed into Windows can be decompressed, but under Windows compression to Linux decompression is not necessarily possible.
(1) Only files can be compressed. The directory cannot be compressed.
(2) Do not keep source files
gzip-d. GZ unzip or gunzip. gz
2. Tar command.
Unzip. tar.gz
You can package the directory as a file. - x is the unpacking
3.. zip default Linux and Windows generic.
The ZIP-R option is to compress the directory, preserving the source file
Zip option to compress file name source files
4. . bz2, is an upgraded version of Gzip. Ideal for compressing large files, the compression ratio is particularly alarming.
Bzip2-k compressed file, with-K preserves the source file
Unzip the word with Bunzip-k unzip the file will also retain the decompression file
5. Network communication directive: Write,wall
6.shutdown-h now specifies how long after the shutdown
Reboot restart
7.shell?
8.
Bash inside
Ctrl + L and command clear, are clear screen
9. Command aliases: Alias
Alias COPY=CP
Alias rm= "Rm-r" Note that the command combination needs to be quoted
Remove with Unalias
10. Input and output redirection:
0 is the standard input stdin (keyboard), 1 is the standard output stdout (monitor), 2 is the standard error output stderr
Output redirect > A symbol will overwrite,>> two can be appended
2> is error output redirect if you look at a file that does not exist, then you can
11. Piping:
To pass the output of one command to another command
12. Command substitutions:
such as Ls-l ' which touch ' is the output of which touch as the parameters of the Ls-l to execute
Linux Basic command Use (iii)