In linux packing and compression are two things
packaged generally use the tar command
packaging
There are
relatively many commands for unpacking and compression, and different commands are generally given corresponding suffixes to facilitate the use of correct commands when unpacking.
Commonly used are bzip2, gzip and zip.
Compression can also use the tar command.
Unzip
in Linux there are multiple file compression tool, Above us, including bzip2, gzip and zip. For the compressed packages generated by these three compression tools, we can use the bunzip2, gunzip and unzip commands to decompress them.
You can specify the path with -d.
The tar command can also be used to decompress.
Because the tar command can pack, unpack, compress, and decompress various formats.
Therefore, it is recommended to use tar directly when encountering such problems.
For compression
tar -zcvf
tar -jcvf For
decompression
tar -zcvf
tar -jxvf
-j compress/decompress with bunzip2;
-z compress/decompress with gunzip;