Linux tar.gz file

Source: Internet
Author: User

A tarball (tar.gz file) is compressed tar archive.

The TAR program provides the ability to create tar archives, as well as various other kinds of manipulation. For example, you can use the Tar on previously created archives-extract files, to-store additional files, or to update or L ist files which were already stored.

 Syntax 

TarOptionsfile.Tar. GZ TarOptionsfile.Tar . GZ PatternTar-xffile.Tar. GZ Tar-xvffile.Tar. GZ Tar-zxvffile.Tar. GZ Tar-zxvffile.Tar.GZfile1 file2 Dir1 Dir2

  Extract tar.gz File

Extract one or more members from an archive, enter:

tar -zxvf {file.  Tar. GZ}

If your tarball name is backup.tar.gz, enter the following at a shell prompt to extract files:

Tar backup.tar.gz

Extract resume.doc file from backup.tar.gz tarball, enter:

Tar backup.tar.gz Resume.doc

Where,

  - Z : Work on gzip compression automatically when reading archives

-x:extract Archives

  - v : produce verbose output i.e. progress and extracted file list on screen

  - F : Read The archive from the archive to the specified file.

-t:list the files in the archive

 

Extracting an entire archive

To extract a entire archive, specify the archive file name only, with no individual file names as arguments.

Tar backup.tar.gz

List Files in Archive

To view a detailed table of contents (List of file), enter:

Tar backup.tar.gz

Linux tar.gz file

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.