Linux Learning Notes Tar package management

Source: Internet
Author: User
Tags gz file

> Display Gong.tar file contents

#tar TF Gong.tar

./epuinfo.txt

./smart/

./smart/smartsuite-2.1-2.i386.rpm

./smart.txt

./tar_creat.txt

> Remove files from the tar file to Gong.tar in the current directory

#tar XVF Gong.tar

Compression/Decompression Tools

>gzip/gunzip--File extension->.gz

>zip/unzip--File extension->zip

>tar--File extension->tar.gz

Compresses all files in the current directory and displays the compression ratio

#gzip-V *

Smart.txt

Tar-create.txt

Tar.txt

Show all files in the directory under the current directory again

All files can be found compressed into GZ files.

#smart. txt.gz

#tar_create. txt.gz

#tar. txt.gz

Gzip can only compress when the file is

Extract files with gzip oil

Decompression of compressed files in the current directory

#gzip-DV *

The tar command processes a number of files into a. tar.gz file

Add several files/folders--Package->.tar--compression-->.tar.gz

> Compress all files in the current directory into gong.tar.gz

Add several files/Folders + package ++>.tar+++ compression ++>.tar.gz

> Compress all files in the current directory into gong.tar.gz

#tar CVFZ gong.tar.gz./*

Tar cvf gong.tar.gz./*

Zip/unzip command

Zip program location in/usr/bin directory

Zip users can compress files into. zip files to save space

command to extract the Zi file

1> compressing a file or folder with a Zip command

Ianhe all files in the current directory

Compress all into gong.zip files

#zip-R gong.zip./*

Adding:gzip/<stored 0%>

adding:gzip/gong.tar.gz <stored 0%>

2> Viewing Gong.zip file contents

#zip-V Gong.zip

#zip info:local Extra (bytes)!=contral Extra (bytes): gzip/

Zip info:local Extra (bytes)!=central Extra (bytes) gzip/gong.tar.gz

Zip info:local Extra (bytes)!=centra extra (13bytes) smart/

Linux Learning Notes Tar package management

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.