Which distro you are using?
Btw, Under Linux and UNIX, use command called unrar.
unrar command supports various options below are common options that you need to use everyday.
To extract the content of the file in current directory type command:
(Please note that replace file.rar filename with your actual filename).
To read the contents of rar file:
To extract (x) files with full path type command:
To test (t) integrity of archive, file type command:
Note that, Under Linux and UNIX, use command called unrar. By default may be, unrar is not being installed on some Linux distro. If those commands does not work for you, then you need to install unrar command with the help of apt-get or yum command.