Tar command
Unpacking: Tar zxvf FileName. Tar
Package: Tar czvf FileName. Tar DirName
GZ command
Unzip 1:gunzip FileName. GZ
Unzip 2:gzip-d FileName. GZ
Compression: gzip FileName
. tar.gz and. tgz
Unzip: Tar zxvf FileName. tar.gz
Compression: Tar zcvf FileName. tar.gz DirName
Compress multiple files: Tar zcvf FileName.tar.gz DirName1 DirName2 DirName3 ...
bz2 command
Unzip 1:bzip2-d FileName. bz2
Unzip 2:bunzip2 FileName. bz2
Compression: Bzip2-z FileName
. tar.bz2
Unzip: Tar jxvf FileName. tar.bz2
Compression: Tar jcvf FileName. tar.bz2 DirName
BZ command
Unzip 1:bzip2-d FileName. BZ
Unzip 2:bunzip2 FileName. BZ
Compression: Unknown
. tar.bz
Unzip: Tar jxvf FileName. tar.bz
Z Command
Unzip: uncompress FileName. Z
Compression: Compress FileName
. Tar. Z
Unzip: Tar zxvf FileName. Tar. Z
Compression: Tar zcvf filename.tar.z DirName
RAR file
Installing 7zip:sudo apt-get Install P7zip-full
Decompression: sudo 7z x filename.rar
or installing Rar:sudo apt-get install rar
Decompression: sudo rar x filename.rar
Compression: sudo rar a filename directory->filename.rar
Compression and decompression of files under Linux