Ubuntu decompressed command zips, tar.gz,tar.bz2 ZIPzip may be the most popular file compression format currently. It is used on different operating system platforms, such as Linux, Windows, and MacOS. The disadvantage is that the supported compression ratio is not very high, and tar. g...
Ubuntu decompressed command zips, tar.gz,tar.bz2 ZIPzip may be the most popular file compression format currently. It is used on different operating system platforms, such as Linux, Windows, and Mac OS. The compression rate is not very high, and tar.gzand tar.gz 2 are very good in terms of compression rate. If you want to extract a zip file, follow these steps: Use the following command to compress a directory: # zip-r archive_name.zip directory_to_compress: # unzip archive_name.zip www.2cto.com TARTar is a widely used document packaging format in Linux. Its advantage is that it only consumes a very small amount of CPU and time to package files. it is only a packaging tool and is not responsible for compression. The following is how to package a directory: # tar-cvf archive_name.tar directory_to_compress how to unpack: # tar-xvf archive_name.tar.gz the command will unpack the file under the current directory. Of course, you can also use this command to hold the path of the unwrapped package: # tar-xvf archive_name.tar-C/tmp/extract_here/TAR. GZ is the most commonly used compression format. It does not occupy too much CPU during compression, and can obtain an ideal compression rate. Use the following format to compress a directory: # tar-zcvf archive_name.tar.gz directory_to_compress decompress: # tar-zxvf archive_name.tar.gz. The Command unpacks the file under the current directory. Of course, you can also use this command to hold the path of the unwrapped package: # tar-zxvf archive_name.tar.gz-C/tmp/extract_here/www.2cto.com TAR. the BZ2 compression format is the best compression ratio among all the methods we mentioned. Of course, this means that it takes more CPU and time than the previous method. For example, you can use tar.bz2 for compression. # Tar-jcvf archive_name.tar.bz2 directory_to_compress the unpackage command will unbind the document from the current directory. Of course, you can also use this command to hold the path of the unwrapped package: # tar-jxvf archive_name.tar.bz2-C/tmp/extract_here/author hanzhou4519
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.