Tar-zcvf/data/www.tar.gz data/www
TAR-ZCVF the directory to be packaged when the file name full path is generated after packaging
Compression:
Compresses the current folder Zip-r./xahot.zip./*-R means recursion
Zip [parameters] [file name after packaging] [packaged directory path]
Decompression Unzip Xahot.zip not explained
The basic usage of the Linux zip command is:
Linux zip command parameter list:
-a convert the file to ASCII mode
-F attempt to repair corrupted compressed file
-H Display Help interface
-M after compressing the file, delete the source file
-N specific string does not compress files with a specific trailing string
-O to set the latest change time for all files in the compressed file to the time of compression
-Q Quiet mode, does not show the execution of instructions during compression
-R processes all subdirectories and files in the specified directory
-S contains system files and implied files (S is uppercase)
-T date sets the last modified date of the compressed file to the specified date, and the date format is mmddyyyy
LINUX Folder Packaging