Linux Learning Notes (iv) compression and packaging of files and file systems

Source: Internet
Author: User

1, the compression command for the use of a number of methods to compress the original file to reduce the disk space occupied by the file. The ratio of disk space consumed by compressed files before compression can be referred to as "compression ratio".

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

3, the extension of the compressed file name is mostly. tar,*.tar.gz,*.tgz,*.gz,*. z,*.bz2.

4, the Common compression command has gzip and bzip2, wherein BZIP2 compression is better than GIZP, it is recommended to use BZIP2.

5, tar can be used for file packaging, and can support gzip or bzip2 compression.

6, Compression: tar-jcv-f filename.tar.bz2 compressed file or directory name.

7, inquiry: Tar-jtv-f filename.tar.bz2.

8. Decompression: Tar-jxv-f filename.tar.bz2-c.

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

10, dump Backup If the file system, you can make 0-9 level differential backup. Where level 0 is a full backup.

11. Restore command restores the backup file that was built by dump.

12, more new disc burning data, can be built through the mkisofs command.

13. Can be written to CD or DVD burner by Cdrecord.

14, DD can back up the complete partition or disk, because DD can read the disk's sector surface data.

15. Cpio is a very 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.

Linux Learning Notes (iv) compression and packaging of files and file systems

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.