Summarize the use of compressed files and files in Linux, compressed files and file is the most common in Linux, a kind of operation, familiar with this part of the skills are also necessary, generally our common commands are: tar, unzip, bunzip2 and so on, How to use the right is also need to master a knowledge focus, the following we divided into two parts to the compressed file and decompression file description.
A, decompression small whole
Tar-i or BUNZIP2 commands can extract. bz2 files Tar xvfj example.tar.bz2 Tar Xvfz example.tar.gz Tar Xvfz example.tgz Tar xvf Example.tar Unzip Example.zip Rpm2cpio Example.rpm│cpio-div ARP Example.deb data.tar.gz | Tar zxf- Tar-jvxf some.bz, is to change the zvxf of tar to JVXF Zip/tar Rh8 has a graphical interface under the software file-roller can do this thing. In addition, you can use unzip *.zip to unlock the zip file, unrar *.rar untie the rar file, but the Unrar general system does not take, to download online:
[Root@localhost software]# wget http://www.rarlab.com/rar/rarlinux-4.2.0.tar.gz [Root@localhost software]# tar zxvf rarlinux-4.2.0.tar.gz [Root@localhost software]# cd rar [Root@localhost rar]# make [Root@localhost rar]# make install
Download rarlinux-4.2.0.tar.gz, unpack and make, and then unzip the RAR file with Unrar e Youfilename.rar Alien offers a conversion between the tgz, RPM,. SLP and. Deb Compression formats: Http://sourceforge.net/projects/alien Sex provides an uncompressed interface for almost all visible compression formats: Http://sourceforge.net/projects/sex
b, tar compression and decompression usage
Decompression: X Compression: C For Gz:z For Bz2:j For display: V To extract an instance: GZ file: Tar xzvf xxx.tar.gz bz2 file: Tar xjvf xxx.tar.bz2 To compress an instance: GZ file: Tar czvf xxx.tar.gz/path bz2 file: Tar cjvf xxx.tar.bz2/path
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.