Bombe "Linux" bird Brother's Linux private cuisine basic study finishing (iii)

Source: Internet
Author: User

1. gzip [-cdtv#] FileName: compression.
Parameters:
-C: Output compressed data to the screen, can be processed by data redirection;
-D: the extracted parameters;
-T: can be used to verify the consistency of a compressed file, to see if the file is error-free;
-V: can display the original file/compressed file compression ratio and other information;
-#: Compression level, 1 fastest (compression ratio worst), 9 slowest (compression ratio is best), default 6.

2. Zcat *.gz: Read the gzip compressed file.

3. bzip2 [-cdkzv#] FileName: compression.
Parameters:
-C: Output the data generated during the compression process to the screen;
-D: the extracted parameters;
-K: retains the original file without deleting the original file;
-Z: Compression parameters;
-V: can display the original file/compressed file compression ratio and other information;
-#: Compression level, 9 best, 1 worst.

4. Bzcat *.bz2: Reads the bzip2 compressed file.

5. Tar [-j|-z] [CVXT] [-f new filename] FileName: package.
Parameters:
-C: New package file, can be paired with-V to see the process of the file name of the package;
-T: View the contents of the packaged file with which file names, focusing on viewing the file name;
-X: Unpack or unzip the function, can be used with-C in a specific directory to solve;
-c,-t,-x cannot appear in the same command at the same time.
-J: Compression/Decompression through the support of bzip2, at this time the file name is preferably *.tar.bz2;
-Z: Compression/Decompression through GZIP support, at this time the file name is preferably *.tar.gz;
-V: During the compression/decompression process, the processing progress is displayed;
-F FileName: Specifies the newly created file name;
-C Directory: Specify the directory when extracting;
-P: Retains the original permissions and properties of the backup data, often used to back up the important configuration file of-C;
-P: Retains absolute path, that is, allows the backup data to contain the root directory;
--exclude=file: In the process of compression, do not say FILE packaging.

6. Dump [-SUVJ] [-level] [-F backup file name] data to be backed up: backup.
Parameters:
-S: Lists only how much disk space is required to back up the data to be backed up;
-U: Log the time of this dump to the/etc/dumpdates file;
-V: Displays the file process of the dump;
-J: Add the support of bzip2, compress the data, the default compression level is 2;
-level: Specifies the compression level;
-F: Specify the target file name;
-W: Lists whether the partition with the dump setting in/etc/fstab has been backed up.

7. Restore-t [-F DumpFile] [-h]: View dump file.
Restore-c [-F dumpfile] [-D mount Point]: Compare the dump file with the actual file.
Restore-i [-F DumpFile]: Enter interactive mode.
Restore-r [-F DumpFile]: Restores the entire file system.
Parameters:
-T: Used to view important data in the dump file;
C: Compare the contents of the dump file with the actual file;
-I: Enter the interactive mode, you can restore only some files, used in the dump directory when the restore;
-R: Restore the entire file system;
-H: View the Inode and File system label information in the full backup data;
-F: Specifies the dump file to be processed;
-D: View the different data contained in the mount point and the dump file.

8. Mkisofs [-o image file] [-RV] [-M file] with backup file [-V Vol]: Create a new image file.
Parameters:
-O: Specifies the target image file name;
-r: Generate supporting Unix/linux file data through Rock Ridge, can record more data;
-V: Displays the process of building the image file;
-m file: excludes files;
-V Vol: New volume.

9. DD if= "input file" of= "Output File" bs= "Block Size" count= "number": Backup.
Parameters:
If: Specify input file, or it can be a device name;
Of: Specifies the output file, or the device name;
BS: Plan a block size, default is 512 bytes (a sector size);
Count: Specifies the number of blocks.

Cpio [-OVCB] > [File|device]: Backup.
Cpio [-IVCDU] > [File|device]: Restore.
Cpio [-IVCT] > [File|device]: view.
Cpio is backed up and restored through federated commands such as find.
Parameters:
-O: Copy the data to a file or device;
-B: Increase the default block size to 5120 bytes, and default to 512 bytes;
-I: Copy the data from the file or device into the system;
-D: Automatically create a new directory, the data that is backed up using cpio is not necessarily in the same level of directory;
-U: Automatically overwrites newer files with older ones;
-T: With the-i parameter, you can view the contents of the new file or device cpio;
-V: Displays the file name that appears in the store;
-C: A newer portable format store.

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.