Linux Diary (exercise record): gzip, bzip2 & amp; tar use the-c parameter to output the compressed content to the screen, and use the-v output compression ratio to redirect new compressed files: use the-d parameter to decompress the package. We can see the results of compression and decompression: the-k parameter makes the generated file not overwrite the source file. -Z parameter straight... 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:
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.