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

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

2 Answers 2

up vote 2 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 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 answers, posting an answer now requires 10 reputation on this site.

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.