Linux decompression has ideas, so Ren Xing

Source: Internet
Author: User

After contact with the Linux system, found some special files, some seemingly and windows, some of the files under the source, such as Filename.zip, is it really "Daming Lake Summer Rain Lotus"? After studying the relevant Linux guidance materials, as if the idea opened, can be in "any line" one time.
1, Filename.tar
This type of file applies to the Tar command, which is commonly used as a packaged command in Linux, often referred to as a tar package.
TAR-C Compressed Archive
Tar-x Decompression
Tar-t Viewing content
Tar-r appending files to the end of a compressed archive file
tar-u updating files in the original compressed package
TAR-V Display Process
Tar-o extracting files to standard output
Tar-p using the original file's original properties
Tar-p can use absolute paths to compress
Example:
TAR-CF Filename.tar filename.txt Packages The filename.txt files into a package named Filenam.tar. Where-F is the name of the specified package.
TAR-RF Filename.tar filename.txt Add the Filename.txt file to the Filename.tar package file.
2, filename.gz
GIZP is a compression program developed by the GNU organization, and the. Gz end file is the result of gzip compression.
Gzip-a using ASCII text mode
Gzip-c output the extracted files to the standard output device
Gzip-f forced decompression of files
Gzip-h online Help
Gzip-l to list information about compressed files
Gzip-l display version and copyright information
Gzip-n when extracting, ignore the information containing the file
Gzip-n and-n instead, keep the original information
GZIP-Q does not display a warning message
Gzip-r recursive processing of related files within the package
Gzip-s changing a compressed word tail string
GZIP-T test if the compressed file is correct
Gzip-v Show Instruction execution process
Gzip-v displaying version information
Example:
TAR-CZF filename.tar.gz filename.txt Packages The filename.txt file into a tar package and compresses the file in gzip to produce a package called filename.tar.gz
TAR-XZF filename.tar.gz Unzip the filename.tar.gz package file
3, filename.tar.bz2
BZIP2 is a lossless compression software based on Burrows-wheeler transform, and the. bz2 end file is the result of bzip2 compression.
Bzip2-c sending compression and decompression results to standard output
Bzip2-d performing the Decompression
Bzip2-f BIZP2 If the output file has the same name as an existing file when compressing or decompressing, the preset does not overwrite the existing file
Bzip2-h Display Help
Bzip2-k bzip2 after compression or decompression, delete the original file.
Bzip2-t reducing the amount of memory used during program execution
BZIP2-V Display Information
Bzip2-z enforcing compression
Bzip2-l Obtaining license Information
Bzip2-v displaying version information
Bzip2--repetitive-best If you have more than one execution file, you can improve the compression effect
BZIP2--repetitive-fast can speed up execution if there are multiple execution files
Example:
TAR-CJF filename.tar.bz2 Filename.txt will filename.txt into a tar package and compress the file with bzip2 to form a package file named FILENAME.TAR.GZ2
TAR-XJF filename.tar.bz2 Unzip the filename.tar.bz2 file
4, Filename.zip
Zip A computer file compression algorithm, filename.zip files are compressed with the zip algorithm files
Unzip-a adjusting an executable auto-unzip file
Unzip-b set up a directory for temporary storage of files
Unzip-c add comments for each compressed file
unzip-d Delete the specified file from within the compressed file
Directory name not established in unzip-d compressed file
UNZIP-F Update the existing file, if some files originally do not exist in the compressed file, this command will be added to the compressed file
Unzip-f trying to repair a corrupted compressed file
Unzip-g the file after it has been compressed and appended to the existing compressed file, not the other new compressed file
Unzip-h online Help
Unzip-i only compressed files that match the criteria
Unzip-j save only the file name and its contents without any directory name
UNZIP-J deleting unnecessary data in front of compressed files
Unzip-k file names using MS-DOS compatible format
Unzip-l the LF character into a LF+CR character when compressing a file
Unzip-ll LF+CR characters into LF characters when compressing files
UNZIP-L Display Copyright Information
Unzip-m the file is compressed and added to the compressed file, the original file is deleted and the file is moved to a compressed file.
Unzip-n does not compress files with a specific trailing string
Unzip-o a file with the most recent change time in the compressed file, setting the time for the compressed file to be the same as the file
Unzip-q does not show the instruction execution process
Unzip-r recursive processing, processing all files and subdirectories under the specified directory
Unzip-s contains system and hidden files
Unzip-t set the date of the compressed backup file to the specified date
UNZIP-T check that each file in the backup file is correct
Unzip-u update replaces newer files within compressed files
UNZIP-V display instruction execution process or display version information
UNZIP-V save VMS Operating system file properties
Unzip-p using the zip password option
Example:
Zip filename.zip filename.txt to compress filename.txt files into a filename.zip package
Unzip Filename.zip unpacking the Filename.zip package file
5, RPM
RPM is an abbreviation for Redhat Package Manager (Red Hat software packages management tool) and now includes distribution versions of OpenLinux, SUSE, and Turbo Linux, which is a recognized version.
RPM-VH Show Installation Progress
Rpm-u Upgrade Package
RPM-QPL listing the file information in the RPM software package
RPM-QPI lists the description information for RPM packages
RPM-QF find which RPM package the specified file belongs to
Rpm-va Check all RPM packages to find missing files
Rpm-qa find the appropriate file, such as Rpm-qa httpd
RPM-E Unloading RPM Package
Rpm-q to query installed software information
Rpm-i Installing RPM Packages
RPM--replacepkgs Reload RPM Package
RPM--percent percent output during package installation
RPM--help Help
RPM--version Display version information
Rpm-c Show All configuration files
Rpm-d Show all document files
Rpm-h Show Installation Progress
Rpm-l listing the files in the package
Rpm-a Show the file status
RPM--NOMD5 MD5 support for not verifying files
RPM--force Mandatory installation package
RPM--nodeps Ignore dependencies
RPM--whatprovides Query/verify provides a dependent package
Example:
Rpm-qa|grep httpd See if httpd is installed
RPM-E httpd Uninstall httpd
The above is a small summary of some of the compression package in the Linux system, here are a few suggestions: 1, when see *.tar, *.tar.zip, *.bz2, *.gz, *.rpm and other package files are, more skilled use of the man command, view tar, unzip, bzip2, RMP command execution instructions to help the correct management of the file; 2, for some of the installation components (from the official package), timely find the appropriate official documentation, according to the instructions of the document to operate; 3, the work, to timely and their direct responsibility to communicate with people, To facilitate the correct operation of the relevant documents of the company, 4, diligently accumulate the experience, forms the document.

Linux decompression has ideas, so Ren Xing

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.