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