More on rar
October 14th, 2006 liewsheng Posted in Archive, rar | Hits: 22036 | 5 Comments »
rar is one of the common file format use for data compression and archiving. What happen if you have a rar file in Linux? Don’t panic, just using the ‘rar’ program ;p There is some intro in Unrar the File. The previous example have shown a simple way to extract a rar, actually still have another way to unrar a file using:
rar x rarfile.rar
unlike ‘e’ switch, this ‘x’ switch will unrar the achive with full pathname and directory if the achive have directory inside.
what if you want to list out the archive content? You can use the ‘v’ switch:
rar v rarfile.rar
This will list out all the file and directory been archived:
Pathname/CommentSize Packed Ratio Date Time Attr CRC Meth Ver ------------------------------------------------------------------------------- Dir0 0 0% 22-03-05 14:00 .D.... 00000000 m0 2.0 Dir/change0 0 0% 22-03-05 14:03 .D.... 00000000 m0 2.0 Dir/change/file.txt3328 1247 37% 22-03-05 13:49 .....A F989869E m3e 2.9 Dir/abcd581632 227257 39% 08-09-02 12:13 .....A 88F2E744 m3e 2.9 ------------------------------------------------------------------------------6 584960 228504 39%
if using ‘vb’ switch will omit detail about the file:
rar vb rarfile.rar
and the output will be:
Dir
Dir/change
Dir/change/file.txt
Dir/abcd
‘l’ and ‘lb’ can be use to list the file, but this two switch will not list out the dir being archived.
to create a rar file is easy :
rar a rarfile.rar filelist
but I have found out that ‘rar’ is a evaluation copy, but you can still using it. May be you will need to register to get a full function.







October 14th, 2006 at 1:27 pm
Ha! I just realized that rar is shareware,
Any “free” version ?
October 29th, 2006 at 2:00 pm
Too many archives that contain CRC errors. In fact, it’s soo bad, that people should probably abandon it. It was a nice idea, but with a shitty implementation, sorry developer…
April 12th, 2007 at 4:45 pm
[...] More information about rar, check out More on rar. [...]
October 17th, 2007 at 7:33 am
Has anyone ever needed a nice tool for making rars (even split ones) in Linux? The command just too stupid!? ;) Well, check out “my site”! :D
It’s always under construction for improvements, so check back often!!!
October 18th, 2007 at 12:23 pm
Thanks for the article. I didn’t know about the vb switch and the man pages weren’t very helpful.