Decompress the file under the new linux/solrais command!

Source: Internet
Author: User

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

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.