Linux packing/unpacking compression/decompression

In linux packing and compression are two things
packaged generally use the tar command
packaging
Insert picture description here

There are
Insert picture description here
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.
Insert picture description here
Insert picture description here
Insert picture description here
Compression can also use the tar command.
Insert picture description here
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.
Insert picture description here
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;

Guess you like

Origin blog.csdn.net/m0_45311187/article/details/111562020
Recommended