Unp is a small perl script which makes extraction of any archive files (see FileCompression) a bit easier. It support several compressors and archiver programs, chooses the right one(s) automatically and extracts one or more files in one go.
sudo apt-get install unp
Method 1 (unpack all archives in a directory):
Method 2 (unpack, for example, all .rar archives in a directory):
Method 3 (unpack 1 archive):
Method 4 (unpack several archives at the same time):
unp archivefile1 archivefile 2
It doesn't extract files from RAR archives with full path!