how to unzip a. gz zip file
#gzip-D xxx.gz
Tar command
[Root@linux ~]# tar [-cxtzjvfppn] files and directories ....
Parameters:
-C: Create a compressed file parameter directive (the meaning of Create);
-X: Unlocks a parameter directive for a compressed file.
-T: View th
for a matching regular expression in a compressed file, using the same as the grep command, except that the object is a compressed file. If the user wants to see if there is a certain word in a compressed file, the Zgrep command is available.Bz:Bzip2-d filename.bzBUNZIP2 filename.bzBZ2:Generate Linux-2-4-2.tar using BUNZIP2 linux-2-4-2.tar.bz2Use tar xvf Linux-2
Tags: Ota win and 3.1 htm str RAC OSI multiple
Original: Linux unzip multiple. gz or. tar.gz files at once
Unzip multiple compressed packagesFor extracting multiple .gz files, use this command:for gz in *.gz; do gunz
extension:# Rpm2cpio file. RPM | cpio-Div12. Install files with the. Deb extension:# Dpkg-I file. Deb13. decompress the file with the. Deb extension:# Dpkg-Deb-fsys-tarfile file. Deb | tar xvf-ar PFile. Deb data.tar.gz | tar xvzf-14.files with the extension of .zip:# Unzip
:# Rpm2cpio file. RPM | cpio-Div12. Install files with the. Deb extension:# Dpkg-I file. Deb13. decompress the file with the. Deb extension:# Dpkg-Deb-fsys-tarfile file. Deb | tar xvf-ar PFile. Deb data.tar.gz | tar xvzf-14.files with the extension of .zip:# Unzip file.zipDe
and compression ratio. -num adjusts the speed of compression with the specified number num,-1 or--fast represents the fastest compression method (low compression ratio), 9 or--best represents the slowest compression method (high compression ratio). The system default value is 6. instruction Example: Gzip *% compress each file in the current directory into a. gz file
, display the filename and compression ratio. -num adjusts the speed of compression with the specified number num,-1 or--fast represents the fastest compression method (low compression ratio), 9 or--best represents the slowest compression method (high compression ratio). The system default value is 6.instruction Example:Gzip *% compress each file in the current directory into a. gz
relevant program, itself and no compression, decompression function, please note!Sex please to: http://sourceforge.net/projects/sex download!After unpacking, copy the sex to the/usr/bin directory (other directories specified by the $PATH environment variable are also available):[[email protected] tmp]# CP sex/usr/bin/linux Common File decompression methods and commandsSystem System 1. A file with an ext
Encountered the database can not find the cause of the problem, can only find the log, find the log when the old log is compressed, only to try to extract the A large amount of data, only in production decompression, and then to find The file name is *.tar.gz, and your blog has previously documented the decompression method: Http://www.cnblogs.com/garinzhang/archive/2013/04/23/3037147.html Use TAR–ZXVF *.tar.gz can not decompress, obviously good tar.
The xxxx.tar.gz file uses tar with ZXVF parameters and can be unpacked at once. XXXX is the filename. For example:
$tar ZXVF xxxx.tar.gz
Gzip-d Syntax: gzip [-acdfhllnnqrtvv][-s Supplemental NOTE: gzip is a widely used compression program, the file after it compressed, The extension of ". Gz" will be appended to the name. Parameter: -A or--ASCII uses ASCI
Common commands:Zip:Package: Zip something.zip Something (directory please add-r parameter)Unpacking: Unzip somethingSpecify path:-d parameterTarPackage: TAR-ZCVF Something.tar SomethingUnpacking: TAR-ZXVF Something.tarSpecify path:-C parameterCompression/decompression tools commonly used on Linux,Main explanation Zip,rar,tarBefore you talk about the compression tools on Linux, it's important to look at the commonly used compressed package
Linux comes with a unzip program can unzip the file, the decompression command is: Unzip Filename.zip also provides a ZIP program compressed zip file, command is zip filename.zip files Files will be compressed to Filename.zip also look at the suffix of your
Under the Linux system, there is no command to RAR file operation, if need file operation to RAR format, we need to install third party software RAR and Unrar.1, linux rar management software Download the official address is:http://www.rarlab.com/2, we can download and install according to the following command, here i download linux_x64 latest version of RAR software---rar 5.21 Beta 1 for Linux x64[Email p
each compressed file: The size of the compressed file, the size of the uncompressed file, the compression ratio, the name of the uncompressed file-R recursively finds the specified directory and compresses all of its files or is decompressed. -T test to check that the compressed f
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.