Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I tried googling around and checked the man page but couldn't find what I was looking for.

Basically need to extract a rar archive to a separate volume. I know:

rar e archive.rar 

will extract it to the current folder but I want to extract it to somewhere else. Can this be achieved without having to first move the archive to that location?

share|improve this question
up vote 3 down vote accepted
rar x archive.rar path/to/extract/to 


share|improve this answer
What if I want to unrar many files, each file is unrar'ed to a folder with the same name? So If I've file1.rar, file2.rar,..etc, I want with a single command to unrar file1.rar to folder named file1, file2.rar to file2, and so on. – Islam Hassan Apr 8 '15 at 17:08

unrar x /define/path/to/extract/

share|improve this answer

protected by splattne Aug 17 '10 at 6:45

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.