Common Decompression Commands: TAR-ZXVPF : Unzip TAR-ZCVPF: Compression # tar [-j|-z] [CV] [-F established file name ] filename ... <== Packaging and Compression # tar [-j|-z] [TV] [-F established file name ] <== View file name # tar [-j|-z] [XV] [-F established file name ] [-C directory ] <== Unzip Parameters: - Z : Through gzip the support for compression / Unzip, the file name is best *.tar.gz. -j : Through bzip2 the support for compression / Unzip, the file name is best *.tar.bz2. - v : In the compression / During the decompression process, the file name being processed is displayed . - C ( creat ): Set up a package file to match - v to observe the file names that were packaged during the process ( filename ) . - T ( List ): View what file names are included in the package archive . - x ( extract -c ( -c -t -x cannot appear in a series of instruction columns at the same time - C : This option is decompressed, decompressed in a specific directory . - f filename : - F to be processed immediately after the file name, it is recommended to write a separate option . - P (lowercase): Retains the original permissions and attributes of the backed up data, the usual term backup ( - C ) Important Configuration Files . P (UPPERCASE): retains the absolute path, that is, allows the backup data to contain the root directory exists . --exclude=file: in the process of compression, do not use the FILE Packing . |