Linux Command - compress command

Compression and decompression command

Command name: gzip
path where the command: / bin / gzip
execute permissions: All users
Description: compressed files, compressed files only, does not retain the original file
syntax: gzip filename
command name: gunzip
path where the command: / bin / gunzip
execution permissions: All users
description: unzip
syntax: gunzip filename
gzip -d can also decompress
command name: tar
command the path: / bin / tar
execute permissions: All users
description: packaging directory
syntax: tar option [cvf] [Contents]
-C produce tar package file
-v displays detailed information display process of packaging
the compressed file name specified -f
-z packaged simultaneous compression / decompression
-x .tar file decompression
tar -zcvf dirl.tar.gz (Packing after the file name) dirl (to be packaged file)
file file name (you can view the file type)
command name: zip
path which the command: / usr / bin / gzip
execute permissions: All users
description: compressed file, retaining the original file
syntax : zip dirl.zip (file name after the package) dirl (to be packed files)
ZIP -r dirl.zip (file name after the package) dirl (to be packed files) compression directory
unzip unzip
command Name: bzip2
path where the command: / usr / bin / bzip2
execute permissions: All users
Description: file compression, high compression ratio
syntax: bzip2 -k file name
bunzip2 file name .bz2
-k retain the original document
windows can All Linux compressed file decompression

Guess you like

Origin blog.csdn.net/weixin_41998682/article/details/89680267