Super User is a question and answer site for computer enthusiasts and power users. 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

So I created a .rar file on windows and it's password protected, and now I'm uploading it to a server, how can I unrar that file on the server to work with the password protected file.

I guess tar -xzfwon't work

share|improve this question

migrated from Apr 18 '12 at 0:50

This question came from our site for system and network administrators.

The tar command opens tar archives that may have been compressed with gzip, bzip2 or something else. If you want to open a rar archive, then you need to use a tool that recognizes the rar format. – Zoredache Apr 17 '12 at 22:57
up vote 2 down vote accepted

You'll need to install unrar or unrar-free

sudo apt-get install unrar-free


unrar-free -x -p password file

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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