rar is one of the common file format use for data compression and archiving. It have a high compression rate and powerful functions. How to decompress a RAR file in Linux? Here is some introductions about rar in Linux system.

How to install RAR Archive Compression and Decompress Software in Ubuntu (rar)

Prerequisites: add universe and multiverse repositories in you sources.list.

Then open a terminal window and type in:
sudo apt-get install rar

How to use rar

To extract a rar archive file to the current directory, use e option
rar e filename.rar

To extract a rar archive to a folder
rar e filename.rar foldername/

To extract a rar archive with full pathname and directory if the archive have its inside, use x option
rar x filename.rar

To list the content’s detail informations of a rar archive file, use v option
rar v filename.rar
When you use vb options, then you become only simply list the filenames and foldernames.

To create a rar archive, use a option
rar a filename.rar myfile1 myfile2 foldername1/myfile3 foldername2
when this archive filename.rar exists always, then it does update the content.

To compress files or a big file to a series of multiple volume rar archives,
Example: compress a big video file, film.rmvb and split it into multiple archives, each size up to 10MB
rar a -m5 -v10m splittedfilm film.rmvb
Then a series of files (splittedfilm.part1.rar, splittedfilm.part2.rar, …) will be created in current directory.

You may change the compression quality, -m5 is the best and the slowest, while -m0 do no compression at all , and the default option is -m3.

To extract the multiple volume rar archives,
rar e splittedfilm.part1.rar
nationally, it must all splitted files in the same directory.

To read more help, please to the man page of rar or rar –help

* the ‘rar’ format is a commercial compression format.


Here's A Few More Related Posts

Comments

Leave a Reply