New sorted out linux / solrais following files unzip command Date: 2004/07/30 Author: zcatlinux Source: zclinux
Document packaging and decompression package: 1. Linux Packaging: TAR CVF * .tar *. * (Original file) - Package TAR ZCVF * .tar.gz *. * (Original file) - Compressed TAR XVF *. TAR - Unpacking Tar Zxvf * .tar.gz - Unzip Solaris Under Packaging Compression: Compress / MNT/LGX/A1.DOC ------ A1.Doc.zunCompRESS / MNT / LGX / A1. Doc.zr recursive operations, if specified directory variables, compress this directory and all files in its subdirectory. -c Returns the compressed data to a standard output, and the compressed data returns the compressed data when the default is compressed. -v Displays the compression percentage of each folder gzip -V / mnt/lgx/a1.doc ------ A1.Doc.gz gunzip /mnt/lgx/a1.doc.gz-c compression results write The original file remains unchanged. By default Gzip compresses the original file to .gz file and delete the original file. -v output processing information. -d decompression specified file. -T Test Compressed File Integrity 2. Take the file with .z as the extension: #uncompress file.z 3. Files of the extension of .gun as the extension: #gunzip file.gz 4. Document with .bz2 as an extension : # Bunzip2 file.bz2 5. With .tar.z as extension files: #TAR XVZF file.tar.z or #compress -dc file.tar.z | tar xvf - 6. Tottar.gz /. TGZ is an extension file: #tar xvzf file.tar.gz or gzip -dc file.tar.gz | tar xvf - 7. With .tar.bz2 as an extension file: #TAR XVIF file.tar.bz2 or BZIP2 -DC file.tar.bz2 | XVF - 8. With .cpio.gz / .cgz to extension files: #gzip -dc file.cgz | cpio -div9. Files with .cpio / cpio are extension: #CPIO -DIV file.cpio or cpio -divc file.cpio 10. Install file with .rpm for extension: #rpm -i file.rpm 11. Decompose the file with .rpm to extension: # rpm2cpio file. RPM | CPIO -DIV 12. Install the files for the extension of. 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. With .zip as the extension file: #unzip file.zip