> 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