Linux basic commands: (3) file backup and compression commands

Source: Internet
Author: User

3. File backup and compression commands:
(1) bzip2 command: Used to compress files. bzip2 file name, suffix bz2. Unzip to: BUNZIP2 file name. bz2
(2) Gzip command: Use gzip to compress files. gzip file name, and the suffix is gz. Unzip to: Gunzip file name. gz
(3) Tar command: Package A large number of files and directories into a single file. TAR-CVF Filename.tar Directory/file Filaname.tar represents the file to be created, and the directory/file represents the files and directories that you want to put in the archive file.
[To list the contents of the tar file: TAR-TVF Filename.tar]
[To extract the contents of the tar file: TAR-XVF Filename.tar]

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.