program, but it seems that there are not as many people using compress as gzip and Bzip2 .. The file ending with Z is the result of Bzip2 compression. The decompress program relative to compress is uncompress. Use the-Z parameter in tar to call compress. The following is an example:
# Tar-CZF all.tar. z *. jpg
Forbidden. Z
#
Linux under the compression, decompression command a variety of, unlike in Windows next WinRAR fight all over the world without rival, exclusively. rar. zip format.For example, the commonly used tar tar.gz tar.bz2 under Linux. Z and so on. The CPU time and compression ratios of each compression and decompression method vary greatly. Here I would like to enumerate, I hope the inappropriate, please advise. -----------------------------------------------
:
#cpio-div File.cpio
or CPIO-DIVC File.cpio
10. Installation of file with the extension of. RPM:
#rpm-I. file.rpm
11. Extract files with the extension of. RPM:
#rpm2cpio file.rpm | Cpio-div
12. Installation of files with a. deb extension:
#dpkg-I. File.deb
13. Unzip files with a. deb extension:
#dpkg-deb-fsys-tarfile File.deb | Tar Xvf-ar P
File.deb data.tar.gz
path for the extracted files, such as the XZ compressed file as 1.txt.xz#xz-D 1.txt.xz-c >/tmp/1.txt4, ZipunzipZip followed by file compression after the filename and then with the file to be compressed, in the current directory compression, the original file will disappear, support compression directory but to add-rC
data.tar.gz | Tar zxf-
———————————————
. Tar. tgz. tar.gz. Tar. Z. tar.bz. tar.bz2. Cpio. rpm. Arj. Lha. Lzh. Lzx. Lzs. SDA. cab SFX. Lnx. P. SLP. Zoo. it. Sit. Sea
Decompression: sEx x filename.*
Compression: SEx a filename.* FileName
Sex just call the relevant program, itself and no compression, decompression function, please note.
Sex please go to: http://so
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:
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 not have the function of co
above/tmp/etc.tar.gz files in the file?[Email protected] ~]# tar-tzvf/tmp/etc.tar.gz# because we use gzip compression, when we look at the files in the tar file,# you have to add Z to this parameter! It's important!Example three: Extracting/tmp/etc.tar.gz files under/USR/LOCAL/SRC[Email protected] ~]# cd/usr/local/src
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
-program PROGUse PROG to compress or decompress the archive (the PROG must accept the-d parameter)
-- Block-compressArchive records by block for ease of disk storage
-[0-7] [lmh]Specify the drive and density [High and Low]
--------------------------
Package: tar-cf soft.tar soft
Unpack: tar-xf soft.tar soft
Compressed directory
Compressed: tar czvf usr.tar.gz/hom
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 comp
For details about tar, gzip, and unzip commands, refer to tar to create files and directories. Using tar, you can create a file (backup file) for a specific file, change the
Reprinted from: http://qiupeng.itpub.net/post/8489/55305
Tar command
Tar can create files and directories. Using tar, you can create a file (backup file) for a specific file, change the file
For details about tar, gzip, and unzip commands, refer to tar to create files and directories. Using tar, you can create a file (backup file) for a specific file, change the
preserving source filesbzip2-d compressed Files: Extracting files,-K preserving compressed filesBUNZIP2 compressed file: Unzip,-K reserved Compressed filebecause gzip, bzip2 command cannot really compress the directory, so it is inconvenient, so Linux provides a solution: You can use the TAR command to package the directory into a single package called.
This article comes from "Stones" blog, http://pengyl.blog.51cto.com/5591604/1191197
Packaging, a combination of many files and directories is saved as a whole package file for easy delivery or portability. The compression operation can further reduce the amount of disk space used by the packaged package files. The most common packaging command in Linux is tar. The most commonly used compression commands ar
Tar-C: Create compressed archives-X: Unzip-T: View content-r: Append files to the end of a compressed archive file-U: Update files in original compressed packageThese five are stand-alone commands, which use one of the compression decompression, and can be used with other commands but only one. The following parameters are optional when compressing or extracting
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.