The program to view and extract
rar files in Linux is provided by the
unrar program. It’s not installed by default in most Linux distributions, and you can use the following command to install it in Ubuntu.
$ sudo apt-get install unrar
Once installed, you can use the
l argument to the program to view the content of a
rar file without extracting it. An example is as the following;
$ unrar l filename.rar