Generally, the rarfile cannot be extracted from Ubuntu installed by default. It can be extracted only after the RAR decompression tool is installed. In fact, installing the RAR decompression tool in Ubuntu is very simple. It can be done quickly in just two steps.
Ubuntu RAR decompression tool installation method:
Compression Function
Install sudo apt-Get install RAR
Uninstall sudo apt-Get remove RAR
Decompression
Install sudo apt-Get install unrar
Uninstall sudo apt-Get remove unrar
Ubuntu decompression command Overview
. Tar
Unpack: Tar xvf filename.tar
Package: Tar CVF filename.tar dirname
Note: tar is packed, not compressed!
~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~
. GZ
Decompress 1: gunzip filename.gz
Decompress 2: gzip-D filename.gz
Compression: gzip filename
~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~
.Tar.gz and. tgz
Decompress: Tar zxvf filename.tar.gz
Compression: Tar zcvf filename.tar.gz dirname
~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~
. Bz2
Decompress 1: Bzip2-D filename.bz2
Decompress 2: bunzip2 filename.bz2
Compression: Bzip2-Z filename
~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~
.Tar.bz2
Decompress: Tar jxvf filename.tar.bz2
Compression: Tar jcvf filename.tar.bz2 dirname
~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~
. Bz
Extract 1: Bzip2-D filename. bz
Decompress 2: bunzip2 filename. bz
Compression: Unknown
. Tar. bz
Decompress: Tar jxvf filename.tar. bz
Compression: Unknown
~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~
. Z
Decompress: uncompress filename. Z
Compression: compress filename
. Tar. Z
Decompress: Tar zxvf filename.tar. Z
Compression: Tar zcvf filename.tar. Z dirname
~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~
. Zip
Decompress: unzip filename.zip
Compression: Zip filename.zip dirname
~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~
. Rar
Decompress: RAR x filename.rar
Compression: rar a filename.rar dirname
RAR Please download to: http://www.rarsoft.com/download.htm!
After decompression, copy rar_static to the/usr/bin directory (Other Directories specified by the $ PATH environment variable can also be used ):
[Root @ www2 TMP] # cp rar_static/usr/bin/RAR
~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~
. LHA
Decompress: LHA-e filename. LHA
Compression: LHA-a filename. LHA filename
Lha please: http://www.infor.kanazawa-it.ac.jp /~ Ishii/lhaunix/download!
> After decompression, copy LHA to the/usr/bin directory (Other Directories specified by the $ PATH environment variable can also be used ):
[Root @ www2 TMP] # cp LHA/usr/bin/
~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~
. Rpm
Unpack: rpm2cpio filename. RPM | cpio-Div
~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~
. Deb
Unpack: Ar P filename. Deb data.tar.gz | tar zxf-
~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~. ~.
Tar. tgz .tar.gz. tar. z. tar. BZ .tar.bz2. zip. cpio. rpm. deb. SLP. ARJ. RAR. ace. lha. lzh. LZX. LZs. ARC. SDA. SFX. lnx. zoo. cab. kar. CPT. pit. sit. sea
Decompress: Sex x filename .*
Compression: Sex a filename. * filename