Zip:Compression:Zip [-acddffghjjkllmoqrstuvvwxyz$][-b ][-ll][-n ][-t ][-][compressed file] [ File ...] [-i Extract:Unzip [options] Compress file name. zipOptions:-X file list to unzip the file, but not include the specified file file.-V View the
The most common packaging program under Linux is tar, which is often referred to as the TAR package, and the tar package file commands are usually terminated with. Tar. After the tar package is generated, it can be compressed with other programs, so
Linux under the Tar decompression GZ decompression bz2 and so on various decompression file use method
Unpack: Tar xvf Filename.tar
Packing: Tar cvf filename.tar dirname
(Note: Tar is packed, not compressed.) ）
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
One, zip compressionInstall Zip and unzip firstYum Install-y Zip/unzipzip 1.txt.zip 1.txtCompressed file 1.txt, compressed filename is called 1.txt.zip zip -r 123.zip 123/Compressed folder 123/specified name 123.zip unzip 1.txt.zipThe zip file
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.
Reference to: http://www.yonsm.net/read.php? 222 # topreply
The following text is reproduced from the explanation by the Chinese author:
-- Extract! Extract! Extract!
tar.gz/xz/bz2 How to DecompressTar usage: Tar was originally used to package on tape drives, and now tar can package any file, package multiple files and directories into a single file, and also support xz/bzip2/gzip compression, separate tar does
Preparatory work:1. Download jdk-8u73-linux-x64.tar.gz from Oracle official website using wget2. Tar tool (CentOS7 Minimal contains this tool by default)3, Nano (small text editor, single function, but small, all kinds of commands are prompted,
How Linux compresses the retention source files:gzip–c filename > filename.gzHow Linux unlocks the retention source file:Gunzip–c filename.gz > FileNameThe use of Gunzip1. RoleThe Gunzip command function is to unzip the file and use the permissions
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:
and provide relevant evidence. A staff member will contact you within 5 working days.