In Linux unrar command is used to “extract files from rar archives” . First we need to make sure this command is installed on Linux. We are using Ubuntu , hence we can install it as below,
Install unrar on Ubuntu
$ sudo apt-get install unrar
You need to install it as per the Linux distribution you are using.
Now, if the compressed filename is “myfile.rar” then we can extract the file as,
$ unrar e myfile.rar
Where the argument e is for “Extract files to current directory.”