Extracting Rar Files From the Command Line in Linux, Unix or Mac OSX

Unrar is a really useful command line utility for extracting rar files. On Mac OSX there are a couple of gui applications that will allow you to extract rar files such as unrarX. However if you want to extract a lot of rar files in multiple parts quickly, the unrar command line tool is the best way to do it.

Install unrar using MacPorts if you are on Mac OSX or use a package manager for your unix/linux distribution.

To extract a single file in the current directory:

To list files in the rar file:

If the rar file has a password, it will prompt you, or you can specify it on the command line:

If you have a lot of rar files in different parts with the same password, you can extract them all with one command:

Extracting rar files this way works very well in conjunction with using wget to download lots of files.

, , ,

2 thoughts on “Extracting Rar Files From the Command Line in Linux, Unix or Mac OSX

Leave a Reply to HS Cancel reply

Your email address will not be published. Required fields are marked *