The following is from: Amin http://www.apelearn.com/study_v2/chapter11.html, the commonly used to write, the feeling can be; Just compress and unzip the tool: Gzip Tool:Just remember these parameters when you use them: NOTE: gzip cannot compress the
Linux compression and decompression commands (gizp, tag, zip, bzip2), gizpbzip2
-------------------------------------- Compression and decompression command -------------------------------
* Windos can decompress all linux System File packages, but
Max OS X installs PHP, uses brew installation, always prompts
Checking
forGzgets
inch-lz yeschecking whether
toEnable BC Style
PrecisionMath functions ... yeschecking
forBZIP2 support ... yeschecking
forBZip2
inch
*. Files compressed by the Zcompress program ;*. bz2bzip2 compressed file ;*. files compressed by the gzgzip program ;*. the data packaged by the tartar program has not been compressed. the files packaged by the * .tar.gz tar program are compressed
--------------------------------------Compression Decompression Command-------------------------------*windos can decompress all of the Linux system's file compression packages, but Linux will not necessarily be able to decompress all WinDOSOne:
Common compression commands on Linux Gzip,bzip2,zip/unzip
1. Gzip
Gzip-generated compressed file is *.gzFormat: gzip [-cdtv#] FileMain parameters:-C: Output compressed data to the screen-D: Decompression-T: Used to verify if there are any errors
The Linux bzip/bunzip2 command is the unzip program for the. bz2 file.BUNZIP2 can decompress compressed files in. bz2 format. The BUNZIP2 is actually a bzip2 symbolic connection, and the BUNZIP2 performs the same as bzip2-d.bZIP Common Command
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,
Linux under a lot of compression tools, commonly used formats are tar.gz, tar.bz2, zip, etc.
A simple comparison:
TAR-ZCVF etc.tar.gz/etc
tar-jcvf etc.tar.bz2/etc
zip-ry etc.zip/etc
Note that the zip command adds two options
-R represents a
Download the source file installation package: www.bzip.orgdownloads.html Unzip: download the source file installation package:
Http://www.bzip.org/downloads.html
Decompress:
Tar-xzvf bzip2-1.0.6.tar.gz
Enter the decompressed Directory:
Cd
There are many compression tools under linux, and the commonly used format is tar.gz, tar.bz2, zip, etc.
A simple comparison:
Tar-zcvf etc.tar.gz/etctar-jcvf etc.tar.bz2/etczip-ry etc.zip/etc
Note: you must add two options to the zip command.
-
Linux diary (Exercise record): gzip, bzip2 & tar Use the-c parameter to output the compressed content to the screen, and use the-v output compression ratio to create a compressed file with redirection:Use the-d parameter to decompress the package.
1. Yum Install Readline-devel2. Yum Install Libxt-devel3. Tar zxvf r-3.3.1.tar.gzCD R-3.3.1./configure--prefix=/opt/r-3.3.1--enable-r-shlibError:Checking for zlib.h ... yesChecking if zlib version >= 1.2.5 ... NoChecking whether zlib support
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.