Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have several directories within a rar file. I am looking to only extract a certain directory out of the rar with cli.

ex: in a rar /tmp /home /etc

I only want to extract the /home directory

share|improve this question

migrated from serverfault.com Apr 20 '11 at 21:48

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

add comment

1 Answer

Assuming you're using the unrar program most linuxes have, it's

unrar x foo.rar home
share|improve this answer
add comment

Your Answer

 
discard

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.