File and file system compression and packaging

Source: Internet
Author: User

The compression command reduces the amount of disk space used by the file by compressing the original file by some arithmetic methods. The ratio of disk space consumed by compressed files before compression can be referred to as "compression ratio".

The advantage of compression can reduce the waste of disk space, the WWW site can also use the technology of file compression to carry out data transmission, so that the availability of Web site bandwidth increases.

The zip file extension is mostly. tar,*.tar.gz,*.tgz,*.gz,*. z,*.bz2.

The common compression commands have gzip and bzip2, where bzip2 compression is better than gzip, it is recommended to use BZIP2.

Tar can be used for file packaging and can support gzip or bzip2 compression.

Compression: Tar-jcv-f filename.tar.bz2 the file or directory name that was compressed.

Enquiry: Tar-jtv-f filename.tar.bz2.

Unzip: tar-jxv-f filename.tar.bz2-c The directory you want to unzip.

The dump command can back up a file system or a single directory.

The backup of dump can be 0~9 level differential backup for file system. Where Level0 is a full backup.

The RESTORE command restores the backup file that was built by dump.

To create a new disc to burn data, you can build it with the Mkisofs command.

You can write to a CD or DVD burner by using Cdrecord.

DD can back up a full partition or disk because DD can read the disk's sector surface data.

Cpio is a pretty good backup command, but it must be matched with a find command to read the file name data to be backed up for backup operations.

File and file system compression and packaging

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.