About file and file system compression and Packaging command-linux (note)

Source: Internet
Author: User

1.gzip : Compress command gzip [-cdtv#] file name (suffix. gz)
-C: Output compressed data to the screen, which can be processed by data flow redirection
-D: decompressed parameters
-V: Can display information such as the compression ratio of the source file/compressed file
-#: Compression level, 1 fastest, 9 slowest, default-6

2.Zcat: Reads compressed files zcat file name. gz
3.bzip2: Compressed command BZIP2 [-cdkzv#] file name (suffix. bz2)
4.Bzcat: Reads the compressed file bzcat filename. bz2
5.Tar: Package Command TAR [-j|-z] [CV] [-f filename] filename
Package and compress tar-jcv-f filename.tar.bz2 files or directories
View filename tar-jtv-f filename.tar.bz2
Unzip the tar-jxv-f filename.tar.bz2-c directory
filename.tar.bz2 own file name, the parameter is J filename preferably *.tar.bz2
The parameter is z and the file name is preferably *.tar.gz
6.Dump: Backup Utility Dump [-SUVJ] [-level] [-f backup file] data to be backed up
-S: Lists only how much disk space is required for the data to be backed up
-V: Displays the file process of the dump
-level: Rank, from-0 ~-9 total 10 levels
-F: Similar to tar, followed by the resulting file
-W: Lists whether the partition with the dump setting in/etc/fstab has been backed up
7.Restore: Restore backup file Restore-r [-F DumpFile]
8.Mkisofs: New Image file Mkisofs [-o image file] [-RV] [-m file] files to be backed up
-O: Follow the image file name you want to generate
-r: Generate Linux-supported file data via Rock Ridge
-V: Record the process of trying the ISO file
-M: To exclude files, the files that follow are not backed up to the image file
9.DD: Backup dd if= "input file" of= "Output File" bs= "Block Size"
If: is the input file, or it can be a device
Of: Is the output file, or it can be a device
BS: Planning a block size, default 512bytes

About file and file system compression and Packaging command-linux (note)

Related Article

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.