Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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 serverfault.com 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

Then:

unrar-free -x -p password file

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .