.rar (Roshal ARchive) files are one of the popular data compression methods. It was developed by Eugene Roshal. RAR files may be created only with commercial software WinRAR, As WinRAR is not an open source software, support for the RAR files is not given in the Linux distributions. So Ubuntu’s archive manager can not handle .rar file. But we can extract .rar files by installing a program called unrar. To install unrar, open terminal and run this command.
sudo apt-get install unrar
So this installs the unrar in your machine and you can open .rar files by running this command –
$ unrar e file.rar (replace
file.rar with your filename/path)
To extract .rar files, open terminal and run the below command,
This post is reblogged from here