extract rar file linux code example
Example 1: how to unrar in linux
$ sudo apt install unrar
//extract to the current folder
$ sudo unrar x filename.rar
//extract all files without sub folders
$ sudo unrar e filename.rar
Example 2: how to extract rar file in ubuntu
sudo apt-get install unrar. Or.
$ sudo apt install unrar. ...
unrar e filename.rar
Example 3: extract rar linux
unrar x <file.rar>