-
Extract the tgz file to the specified directory tar is commonly used on Linux packaging, compression, compression tools, he has a lot of parameters, folding only to enumerate the commonly used compression and decompression parameter parameters:-c:create to establish the parameters of compressed archives;-X: Extract the parameters of the compressed archive;-Z: Need to use gzip compression;-V: The file is displayed during compression;-F: The top document name, immediately after F to answer the file name, can not add parameter example: First, the entire/home/www/images directory of files are packaged as/home/www/images.tar tar-c vf/home/www/images.tar/home/www/images← only packaged, uncompressed tar-zcvf/home/www/images.tar.gz/home/www/images← packaged, compressed after parameter F in gzip The compressed file name of the face is taken by oneself, used tar to do, if add z parameter, then tar.gz or tgz to represent gzip compressed tar file File 1 Extract tgz file to the specified directory tar zxvf test.tgz-c specified directory such as/sour Ce/kernel.tgz extract to/source/linux-2.6.29 directory tar zxvf/source/kernel.tgz-c/source/linux-2.6.29 2 compress the specified directory to the specified file such as linux- 2.6.29 directory compression to kernel.tgz tar czvf kernel.tgz linux-2.6.29 reprint: http://www.2cto.com/os/201308/233614.html
Extract the tgz file to the specified directory