Linux system tar file compression and packaging command

Experimental environment: Centos 7.* 64-bit, minimal installation version. If you don't unzip it for a long time, the command will be forgotten, keep a record for yourself, and come and see if you have nothing to do.

Linux system tar file compression and packaging command linux system tar file compression and packaging command

Packaged into tar.gz format compressed package

# tar -zcvf renwolesshel.tar.gz /renwolesshel

Decompress the tar.gz format archive

# tar zxvf renwolesshel.tar.gz

Packaged into tar.bz2 format compressed package

# tar -jcvf renwolesshel.tar.bz2 / renwolesshel

Decompress the compressed package in tar.bz2 format

# tar jxvf renwolesshel.tar.bz2

compressed into zip format

# zip -q -r renwolesshel.zip renwolesshel/

Unzip the compressed package in zip format

# unzip renwolesshel.zip

Let’s start with these for now, and add them later when we encounter them.

The original text comes from: https://www.linuxprobe.com/linux-tar.html

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325125237&siteId=291194637