First,
sudo apt-get install rar unrar
then, when you extract file
unrar e file.rar
if you compress a file
rar x file.rar
First,
sudo apt-get install rar unrar
then, when you extract file
unrar e file.rar
if you compress a file
rar x file.rar