Archiving
Package name
Compress command
Decompress Command
Replaces the original files(s)?
zip
zip {filename} {file-to-compress}, Exp: zip ./file.zip file
unzip file.zip
No
gzip
gzip {file-to-compress}, gzip file
gunzip file.gz
Yes
bzip2
bzip2 {file-to-compress}, bzip file
bunzip file.gz2
Yes
xz-utils
xz {filename-to-compress}, xz file
unxz file.xz
Yes
tar
tar cfz {filename} {filename-to-compress}
tar xf bigfile.tgz
No
p7zip
7z a {filename} {file-to-compress}, Ex: 7z a ./file.7z file
7z e file.7z, tgz, gz2, zip, gz..
No
For Scripting and processing of large amount of data gzip is recommended as it is faster in that particular task.
For general compression and decompression p7zip is recommended to use as it supports wide variety of formats.
Last updated