Previously decompression compressed files always go to rote these parameters and instructions, in fact, understand the principle is not to remember, please look down
The common parameters of tar are as follows:
-c:create Create a compressed file, you must have him when you compress the file.
-x:extract unzip a compressed file, then unzip the file will be without him.
-T: View files in compressed files (tarfile)
The above three parameters have a strong purpose, so there is only one existence.
-Z: Unzip or compress into. gz files
-J: Unzip or compress into. bz2 file (encountered in GZ with Z, encountered bz2 with J, then can be summed up into ZGJB, my input method record the four-letter word is "on the hook," you?)
-v:visible display files during compression or decompression
-F: Use file name, after F immediately after the file name (filename, you want to specify the extracted file name or compressed file name to use him)
eg
Compression
TAR-CZVF boa.tar.gz./boa
TAR-CJVF boa.tar.bz2./boa
Extract
TAR-XZVF boa.tar.gz
TAR-XJVF boa.tar.bz2
Linux compression decompression Instructions tar----------read the moment to remember the use of parameters, never need to check