How to solve the compression decompression Linux? Is it a Gzip file? 1. .a. Document: #TAR XV file.a 2. Files with .z as extensions: #uncompress file.z 3. Files with .gz as extensions: #gunzip file.gz 4 . With .bz2 as the extension of the file: #bunzip2 file.bz2 5. With .tar.z as the extension file: #TAR XVZF file.tar.z or #compress -dc file.tar.z | tar xvf - 6. Documents to the extension of .tar.gz / .tgz: #tar xvzf file.tar.gz or gzip -dc file.tar.gz | tar xvf - 7. With .tar.bz2 as an extension of the file: #TAR XVIF file.tar.bz2 or bzip2 -dc file.tar.bz2 | XVF - 8. With .cpio.gz / .cgz for the extension file: #gzip -dc file.cgz | CPIO-Div 9. .CPIO / CPIO is the extension file: #cpio -div file.cpio or cpio -divc file.cpio 10. Installation with .rpm to extension files: #rpm -i file.rpm 11. Extension with.RPM Name file decompression: # rpm2cpio file.rpm | CPIO -DIV 12. Install the file with .deb to extension: #dpkg -i file.deb 13. Decompose the file with .deb to the extension: # DPKG- Deb --fsys-tarfile file.deb | tar xvf - ar p file.deb data.tar.gz | tar xvzf - 14. Files with .zip as extensions: #unzip file.zip Decompress Winzip format under Linux If the file is installed, you can use the jar command; you can also use the unzip command. Directly decompressed .tar.gz file xxxx.tar.gz file Using the TAR with ZXVF parameters, you can decompress it once. XXXX is the file name. For example: $ TAR ZXVF XXXX.TAR.GZ Decompression (Installation Method) of Various Compressed Files
File extension decompression (installation method)
.a ar xv file.a .gz gunzip file.gz .bz2 bunzip2 file.bz2 .tar.z tar xvzf file.tar.z compress -dc file.tar.z | tar xvf - .tar .gz / .tgz tar xvzf file.tar.gz gzip -dc file.tar.gz | tar xvf - .tar.bz2 tar xvif file.tar.bz2 bzip2 -dc file.tar.bz2 | xvf - .cpio.gz /.cgz gzip -dc file.cgz | cpio -div .cpio / cpio cpio -div file.cpio cpio -divc file.cpio.rpm / install rpm -i file.rpm.rpm / extract rpm2cpio file.rpm | CPIO - Div.deb / install dpkg -i file.deb .deb / exrtact DPKG-Deb --fsys-tarfile file.deb | tar xvf - ar p file.deb data.tar.gz | tar xvzf - .zip unzip file.zip
Bzip2 -d myfile.tar.bz2 | tar xvf
Tar xvfz myfile.tar.bz2
X is decompressed V is complex output F is specified file z Gz format