have experience using DOS, Windows ARJ, ZIP-type programs, you will find that Gzip has a fatal disadvantage: it can only compress one file. Even for sub-directory compression, it is also for individual file compression in subdirectories, and does not crush them into a tight "package".So on Linux, this "bag" task is used by the TAR program to do it. Note that tar is not a compression program, because the size of the package is as large as it was originally packaged. So it's not a compression pro
extension:# Rpm2cpio file. RPM | cpio-Div12. Install files with the. Deb extension:# Dpkg-I file. Deb13. decompress the file with the. Deb extension:# Dpkg-Deb-fsys-tarfile file. Deb | tar xvf-ar PFile. Deb data.tar.gz | tar xvzf-14.files with the extension of .zip:# Unzip file.zipDecompress WinZip files in LinuxIf JDK is installed, you can use the jar command and the unzip command.Directly decompress the .tar.gz FileThe xxxx.tar.gz file uses tar wit
.files with the extension .tar.gz/. tgz:
# Tar xvzf file.tar.gz
Or gzip-dc file.tar.gz | tar xvf-
7.files with the extension of .tar.bz2:
# Tar xvIf file.tar.bz2
Or bzip2-dc file.tar.bz2 | xvf-
8.files with the extension .cpio.gz/. cgz:
# Gzip-dc file. cgz | cpio-div
9. files with the. cpio/cpio extension:
# Cpio-div file. cpio
Or cpio-divc file. cpio
10. Install files with the. rpm extension:
# Rpm-I file. rpm
11. decompress the file with the. rpm ex
:
#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 | Tar Xvzf-
14. Files with a. zip extension:
#unzip File.zip
Unpack WinZip files under Lin
UNIX is to first use tar to compress many files (which may contain subdirectories) package it into one file (gzip and compess can only compress one file), and compress it into xxx.tar.gz (or xxx. tgz) file.
Due to the wide variety of tar parameters, I will first introduce the common tar methods:
Paul :~ /Tar cvf filesname.tar
Paul :~ /Tar cvzf filesname.tar.gz
Paul :~ /Tar tvf filesname.tar
Paul :~ /Tar xvf filesname.tar
KDE archiver
KDE archiver
---------------. DebUnpack: Ar P filename. Deb data.tar.gz | tar zxf----------------. Tar. tgz .tar.gz. Tar. Z. Tar. BZ .tar.bz2. Zip. cpio. rpm. Deb. SLP. ARJ. Rar. Ace. LHA. lzh. LZX. LZs. Arc. SDA. SFX. lnx. Zoo. Cab. kar. CPT. Pit. Sit. SeaDecompress: Sex x filename .*Compression: Sex a filename. * filename
Sex only calls related programs and does not support compression or decompression. Please note!For sex, go to http://sourceforge.net/projects/
:# Rpm2cpio file. RPM | cpio-Div12. Install files with the. Deb extension:# Dpkg-I file. Deb13. decompress the file with the. Deb extension:# Dpkg-Deb-fsys-tarfile file. Deb | tar xvf-ar PFile. Deb data.tar.gz | tar xvzf-14.files with the extension of .zip:# Unzip file.zipDecompress WinZip files in LinuxIf JDK is installed, you can use the jar command and the unzip command.Directly decompress the .tar.gz FileThe xxxx.tar.gz file uses tar with the zxvf
. Files with a. cpio.gz/.cgz extension:#gzip-DC File.cgz | Cpio-div9. Files with a. cpio/cpio extension:#cpio-div File.cpioor CPIO-DIVC File.cpio10. Installation of file with the extension of. RPM:#rpm-I. file.rpm11. Extract files with the extension of. RPM:#rpm2cpio file.rpm | Cpio-div12. Installation of files with a. deb extension:#dpkg-I. File.deb13. Unzip files with a. deb extension:#dpkg-deb-fsys-tarfile File.deb | Tar Xvf-ar PFile.deb data.tar.gz | Tar Xvzf-14. Files with a. zip extension:
file with an extension of. RPM:#rpm2cpio file.rpm | Cpio-div12. Install files with the. deb Extension:#dpkg-I. File.deb13. Unzip the file with a. deb extension:#dpkg-deb-fsys-tarfile File.deb | Tar Xvf-ar PFile.deb data.tar.gz | Tar Xvzf-14. Files with a. zip extension:#unzip File.zipUnzip files in WinZip format under LinuxIf you have a JDK, you can use the Jar command, and you can do so with the unzip command.Unzip the. tar.gz file directlyThe xxxx.
filename.tar.z DirName———————————————. zipDecompression: Unzip Filename.zipCompression: Zip Filename.zip DirNameCompress a directory using the-r parameter,-R recursion. Example: $ zip-r filename.zip DirName———————————————. rarDecompression: rar x Filename.rarCompression: rar a Filename.rar DirNameRAR please to: http://www.rarsoft.com/download.htm download!After extracting, copy the rar_static to the/usr/bin directory (other directories specified by the $PATH environment variable are also availa
with the. Deb extension:# Dpkg-Deb -- fsys-tarfile file. Deb | tar xvf-ar PFile. Deb data.tar.gz | tar xvzf-14.files with the extension of .zip: # Unzip file.zipDecompress WinZip files in LinuxIf JDK is installed, you can use the jar command and the unzip command.Directly decompress the .tar.gz FileThe xxxx.tar.gz file uses tar with the zxvf parameter and can be decompressed once. XXXX is the file name. For example:$ Tar zxvf xxxx.tar.gz decompress v
with Z Extension: # uncompress file. z 3.files with the extension .gz: # gunzip file.gz 4.files with the extension .bz2: # bunzip2 file.bz2 5..tar. files with Z Extension: # tar xvzf file.tar. z or # compress-DC file.tar. z | tar xvf- 6.to .tar.gz /. files with the tgz Extension: # tar xvzf file.tar.gz or gzip-DC file.tar.gz | tar xvf- 7.files with the extension of .tar.bz2: # tar xvif file.tar.bz2 or Bzip2-DC file.tar.bz2 | xvf- 8. .cpio
-DIVC File.cpio10. Install files with an extension of. RPM:#rpm-I. file.rpm11. Unzip the file with an extension of. RPM:#rpm2cpio file.rpm | cpio-div12. Install files with the. deb Extension:#dpkg-I. File.deb13. Unzip the file with a. deb extension:#dpkg-deb--fsys-tarfile File.deb | Tar Xvf-ar PFile.deb data.tar.gz | Tar Xvzf-14. Files with a. zip extension:#unzip File.zipUnzip files in WinZip format under LinuxIf you have a JDK, you can use the Jar c
I. Right-click the menu to reveal the secret1. Right-click all files and add the commandIf your system is installed with WinZip, ultraedit, and so on, when you right-click any file, there will be "add to zip", "UltraEdit-32" and other commands (of course, WinZip is slightly different, I will talk about it later ). It can be added:(1) Open "hkey_classes_root //*";(2 ). create the "shell // command" branch un
---------------. Tar. tgz .tar.gz. Tar. Z. Tar. BZ .tar.bz2. Zip. Cpio. rpm. Deb. SLP. ARJ. rar. Ace. LHA. lzh. LZX. LZs. Arc. SDA. SFX. lnx. Zoo. Cab. kar. CPT. Pit. Sit. SeaDecompress: Sex x filename .*Compression: Sex a filename. * filename
Sex only calls related programs and does not 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 direct
Targz decompression: tarzxvfFileNametargz compression: tarzcvfFileNametargzDirName summarizes the compression and decompression methods of various amp; 26684; compressed packages in linux. But I didn't use some methods.
.Tar.gz
Decompress: tar zxvf FileName.tar.gz
Compression: tar zcvf FileName.tar.gz DirName
This section roughly summarizes the compression and decompression methods for various formats of compressed packages in linux. However, I have not used some of the methods. I hope you can
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.