Site Statistics
 
Threads: 3,849
Posts: 17,024
Members: 2,894
Users Online: 27
Newest Member: yurispacedan


Go Back   PC101 > PC Software > UNIX / Linux

UNIX / Linux Linux is the UNIX-like operating system that provides personal computer users a FREE or very low-cost operating system.


Reply
 
LinkBack Thread Tools Display Modes
Old 06-15-2006, 07:09 AM   #1
Junior Member
 
Join Date: Jun 2006
Posts: 1
Rep Power: 0 chilling is on a distinguished road
How do I extract one sub-directory out of a .tar file

I have a file called "/old_rh9_data/hdg1.tar" which is 51.32 GB and I want to extract one sub-directory which was orginally in the root called "cvsroot" and all the files and subdirectories within that "/cvsroot" directory.

What would be the command I should run?
chilling is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-16-2006, 01:58 AM   #2
Distinguished Member
 
Join Date: Jul 2005
Posts: 2,208
Rep Power: 5 Will.Spencer is on a distinguished road
This should work for you:
Code:
tar xvf /old_rh9_data/hdg1.tar "/cvsroot/*"
If this doesn't work on the first try, it's easy to see what you should put inside the quotes by using this command:
Code:
tar tvf /old_rh9_data/hdg1.tar | more
Will.Spencer is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change file associations in Windows XP Black_Hand Windows Vista, XP, 2000, 98, etc... 0 11-03-2006 03:47 PM
Hacking SUSE Linux 10.1 OulZac UNIX / Linux 7 08-26-2006 03:48 PM
Optimize Your Windows XP Install OulZac Windows Vista, XP, 2000, 98, etc... 9 08-22-2006 08:24 PM
Simple File I/O MarkSpacey Software Development 1 06-24-2006 04:15 AM
Page file setings? bbalegere Windows Vista, XP, 2000, 98, etc... 4 04-17-2006 01:22 PM



All times are GMT -5. The time now is 10:13 PM.

Powered by vBulletin Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC5