The program to extract rar files or archive in Linux is a program called unrar. It’s not installed by default in most Linux distributions, and the following command will install it in Ubuntu.
$ sudo apt-get install unrar
To extract a rar archive to the current working directory, the following command is used;
$ unrar e filename.rar