1, *.tar with TAR–XVF decompression2, *.gz with gzip-d or gunzip decompression3, *.tar.gz and *.tgz with TAR–XZF decompression4, *.bz2 with bzip2-d or with BUNZIP2 decompression5, *.tar.bz2 with TAR–XJF decompression6, *. Z Extract with Uncompress7, *.
tar, which is the meaning of the undo. Tar provides a special feature to facilitate the user's ability to compress or decompress a file while unpacking the package. This is what tar can call other compression programs while packaging or unpacking, such as calling Gzip, bzip2, and so on. 1) Tar call gzip gzip is a co
In Linux, users often need to back up data in computer systems. To save storage space, backup files are often compressed. This article provides a general summary of the compression and decompression commands.
.Tar.gzDecompress: Tar zxvf filename.tar.gzCompression: Tar zcvf filename.tar.gz dirname
Decompression of * .tar.gz in Solaris may be different. Follow these two steps:
1. gzip-D * .tar.gz
2.
Summarizes the compression and decompression methods of compressed packets in various formats under Linux. But some of the methods I did not use, but also not all, I hope you can help me to add, I will revise the perfect at any time, thank you!. Tar unpack: Tar xvf Filename.tar package: Tar cvf filename.tar DirName (Note: Tar
the most basic usage of tar. To help you compress or decompress the packageFile, tar provides a special feature. This means that tar can call other pressures while packaging or unpacking.Program shrinking, such as calling gzip and Bzip2.
1) tar calls Gzip
Gzipis a program developed by gnuorganization. The file ending
files in the all.tar package.-X is used to unlock the file.
The above is the most basic usage of tar. To help you compress or decompress the packageFile, tar provides a special feature. This means that tar can call other pressures while packaging or unpacking.Program shrinking, such as calling gzip and Bzip2.
1) tar c
the compression and decompression functions. Please note!For sex, go to http://sourceforge.net/projects/sexto download it!After decompression, copy sex to the/usr/bin directory (Other Directories specified by the $ PATH environment variable can also be used ):[Root @ www2 TMP] # cp sex/usr/bin/
Common file decompression methods and commands in LinuxSystem-System1. Files with. A extension:# Tar XV file.2. files with the. Z extension:# Uncompress file.
directory into a. gz file.
$ cd/home
$ gzip *
$ ls
123.gz aaa.gz abc.gz
Example 2: Unzip each compressed file in Example 1 and list detailed information.
$ GZIP-DV *
123.gz: -50.0%--Replaced with 123Aaa.gz: -50.0%--Replaced with AAAAbc.gz: -50.0%--Replaced with ABC
$ ls
123 AAA ABC
Example 3: Details the information of each compressed file in Example 1 and does
used to extract all files in the all.tar package.-X is used to unlock the file.
The above is the most basic usage of tar. To help you compress or decompress files while packing and unpackage, tar provides a special feature. This means that tar can call other compression programs, such as gzip and Bzip2, while packaging or unpacking.
1)
detailed information.$ GZIP-DV * 123.gz: -50.0%--replaced with 123 aaa.gz: -50.0%--Replaced with AAA abc.gz: -50.0%--Replaced with ABC$ ls123 AAA ABCExample 3: Detailed Example 1 shows the information of each compressed file, and does not understand the pressure.$ gzip-l *Compressed uncompressed ratio uncompressed_name4 -50.0% 1234 -50.0% AAA4 -50.0% ABC About -416.7% (totals)$ ls123.gz aaa.gz abc.gzExa
support compression or decompression. Please note!For sex, go to http://sourceforge.net/projects/sexto download it!After decompression, copy sex to the/usr/bin directory (Other Directories specified by the $ PATH environment variable can also be used ):[Root @ www2 TMP] # cp sex/usr/bin/
Common file decompression methods and commands in LinuxSystem-System 1. Files with. A extension:# Tar XV file.2. files with the. Z extension:# Uncompress file. Z3.f
Roughly summed up the Linux under the various formats of compression package compression, decompression methods. But some of the methods I did not use, also not all, I hope you help me to add, I will be ready to modify, thank you.
. tar
Unpack: Tar xvf Filename.tar
Packing: Tar cvf filename.tar dirname
(Note: Tar is p
command used is the same as (3) and is not mentioned.(5). GZ Compression: gzip-d demo.gz DemoDecompression: Gunzip demo.gz(6). Z compression: Compress filesDecompression: uncompress demo. Z(7) Tar. Z Compression: TAR-ZCVF demo.tar.z DemoDecompression: TAR-ZXVF Demo.tar.z(8). zip Compression: Zip-r demo.zip Demo (Demo
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. GZIP-DV *% extracts each compressed file in the current directory and lists detailed
, 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 file. GZIP-DV *% extracts each compressed file in the current director
tar [-cxtzjvfppn] files and directories ....Parameters:-C: Create a compressed file parameter directive (the meaning of Create);-x: Unlock the parameter instructions for a compressed file!-T: View the files inside the Tarfile!In particular, in the release of the parameters, c/x/t can only exist one! Cannot exist at the same time!Because it is not possible to compress and decompress simultaneously.-Z: Do you have the properties of gzip at the same time
Compression ratios are different for each compression algorithmGZIP: Compressed files are. gz format, so is the suffixGzip/path/to/somefile: The original file is deleted when the compression is complete, the compressed file is named after the source file, and the suffix is added automaticallyGunzip: Unzip files in. gz format and delete original files after decompressionZcat: To view the contents of a text f
The "preface" is explained in the blog post:This article will introduce through the personal tone of the Linux platform related compression and decompression command related knowledge, in the current time point "May 23, 2017 " under the grasp of the technical level is limited, there may be a lot of knowledge understanding is not deep enough or comprehensive, I hope you point out the problem of common exchange, In the follow-up work and study, if found that the content of this article and the act
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-4-2.ta
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.