Generally through the default installation of Ubuntu can not extract RAR files, only after the installation of RAR decompression tool, can be decompressed. In fact, the installation of RAR decompression tool under Ubuntu is very simple, only need two steps can be quickly done.
Ubuntu RAR Decompression Tool installation method: Install the decompression tool
sudo apt-get install unace unrar zip unzip p7zip-full p7zip-rar sharutils rar uudeview mpack lha ARJ cabextract
Compression function
Installing sudo apt-get install rar
Uninstalling sudo apt-get remove rar
Decompression function
Installing sudo apt-get install Unrar
Uninstalling sudo apt-get remove Unrar
Full overview of Ubuntu decompression commands
. tar
Unpacking: Tar xvf Filename.tar
Package: Tar cvf filename.tar DirName
Note: Tar is packaged, not compressed!
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~
. gz
Decompression 1:gunzip filename.gz
Decompression 2:gzip-d filename.gz
Compression: gzip FileName
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~
. tar.gz and. tgz
Decompression: Tar zxvf FileName.tar.gz
Compression: Tar zcvf FileName.tar.gz DirName
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~
. bz2
Decompression 1:bzip2-d filename.bz2
Decompression 2:BUNZIP2 filename.bz2
Compression: Bzip2-z FileName
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~
. tar.bz2
Decompression: Tar jxvf FileName.tar.bz2
Compression: Tar jcvf FileName.tar.bz2 DirName
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~
. BZ
Decompression 1:bzip2-d filename.bz
Decompression 2:BUNZIP2 filename.bz
Compression: Unknown
. tar.bz
Decompression: Tar jxvf FileName.tar.bz
Compression: Unknown
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~
. Z
Decompression: uncompress filename.z
Compression: Compress FileName
. Tar. Z
Decompression: Tar zxvf filename.tar.z
Compression: Tar zcvf filename.tar.z DirName
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~
. zip
Decompression: Unzip Filename.zip
Compression: Zip Filename.zip DirName
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~
. rar
Decompression: rar x Filename.rar
Compression: rar a Filename.rar DirName
RAR please to: http://www.rarsoft.com/download.htm download!
After extracting, copy the rar_static to the/usr/bin directory (other directories specified by the $PATH environment variable are also available):
[email protected] tmp]# CP Rar_static/usr/bin/rar
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~
. Lha
Decompression: Lha-e Filename.lha
Compression: Lha-a Filename.lha FileName
LHA please go to: http://www.infor.kanazawa-it.ac.jp/~ishii/lhaunix/download!
> After unpacking, copy the LHA to the/usr/bin directory (other directories specified by the $PATH environment variable are also available):
[email protected] tmp]# CP lha/usr/bin/
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~
. rpm
Unpacking: Rpm2cpio filename.rpm | Cpio-div
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~
. deb
Unpacking: ar p filename.deb data.tar.gz | Tar zxf-
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.
Tar. tgz. tar.gz. Tar. Z. tar.bz. tar.bz2. zip. cpio. Arj. rar. Ace. Lha. Lzh. Lzx. Lzs., Arc. SDA. SFX. Lnx. Zoo. cab. Kar. cpt. P it. Sit. Sea
Decompression: sEx x filename.*
Compression: SEx a filename.* FileName