Linux diary (Exercise record): gzip, bzip2 & amp; tar

Source: Internet
Author: User

Linux diary (Exercise record): gzip, bzip2 & tar
 
Use the-c parameter to output the compressed content to the screen, and use the-v output compression ratio to create a compressed file with redirection:


Use the-d parameter to decompress the package. You can see the results after compression and decompression:


The-k parameter does not overwrite the source file. -Zsung directly adds the suffix ".bz2" after the name:

Display result:

Use-v to output compression information. Use-f to forcibly overwrite the file:

-J indicates compression,-c Indicates creating a new file,-v indicates the specific progress,-p indicates the Save permission, and-f indicates the newly created file, which is in the/etc folder.

View the compression result:

View the compressed file name. If the parameter-v is added, you can view the detailed information of the compressed file:

Create a folder:

Decompress the package to the New Folder:

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.