Decompress the file under Linux/solrais
Date: 2004/07/30 Author: zcatlinux Source: zclinux
Package and decompress the package:
1. Package and unpackage in Linux:
Tar CVF *. Tar *. * (original file)-Package
Tar zcvf * .tar.gz *. * (original file)-compression
Tar xvf *. Tar-Unpack
Tar zxvf * .tar.gz-extract
Package and decompress under Solaris:
Compress/mnt/lgx/a1.doc -------a1.doc. Z
Uncompress/mnt/lgx/a1.doc. Z
-R recursive operation. If a directory variable is specified, all files in the directory and Its subdirectories are compressed.
-C returns the compressed data to the standard output. By default, the compressed data is returned to the file.
-V: shows the compression percentage of each folder.
Gzip-V/mnt/lgx/a1.doc ------a1.doc.gz
Gunzip/mnt/lgx/a1.doc.gz
-C compression results are written to the standard output, and the original file remains unchanged. When the upload is complete, gzipzip compresses the original file into a. GZ file and deletes the original file.
-V outputs the processing information.
-D. decompress the specified file.
-T test the integrity of the compressed file
2. files with the. z extension:
# Uncompress file. Z
3.files with the extension of .gz:
# Gunzip file.gz
4.files with the extension of .bz2:
# Bunzip2 file.bz2
5.files with the extension of .tar. Z:
# Tar xvZf file.tar. Z
Or # compress-dc file.tar. Z | tar xvf-
6.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 extension:
# Rpm2cpio file. RPM | cpio-Div
12. Install files with the. Deb extension:
# Dpkg-I file. Deb
13. decompress the file with the. Deb extension:
# Dpkg-Deb -- fsys-tarfile file. Deb | tar xvf-ar P
File. Deb data.tar.gz | tar xvzf-
14.files with the extension of .zip:
# Unzip file.zip