LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-15-2012, 03:24 PM   #1
Rhys7891
LQ Newbie
 
Registered: May 2012
Posts: 2

Rep: Reputation: Disabled
Question How do I extract a single directory from a .rar file?


Hey, okay I'm new to all this and I only just figured out how to extract files from a .rar file so this might be a really obvious question but anyway...I used wget to download a .rar file from the internet and I tried to extract it but I started getting messages that some of the files already existed and did I want to overwrite them. The .rar file I downloaded was made up of several folders all with different files in them. I found out that the error messages were because when I extract the files it ignores the folders and just extracts all the individual files instead. How do I get it to extract one folder with all the files still in it? Hopefully this makes sense to someone Thanks in advance
 
Old 05-15-2012, 03:33 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,130
Blog Entries: 2

Rep: Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825
I assume that you try to decompress the archive with
Code:
unrar e archive.rar
This will extract only the files, just as you described. If you use
Code:
unrar x archive.rar
the files will be extracted with their full path.
For more info on unrar look at
Code:
man unrar
 
Old 05-24-2012, 02:59 PM   #3
Rhys7891
LQ Newbie
 
Registered: May 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
Oh wow, okay thanks for the help that worked
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to extract rar file kumary Linux - General 3 03-31-2006 04:36 AM
how to extract a .rar file in slackware 10.1? athanatos Slackware 1 05-13-2005 12:42 PM
What program can I use to extract a rar file in linux? gbdavidx Linux - Software 3 11-20-2004 06:30 PM
how to extract .rar file treotan Linux - Newbie 2 07-16-2004 01:47 AM
extract single directory from .tgz rickenbacherus Linux - General 2 02-07-2004 11:37 AM


All times are GMT -5. The time now is 03:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration