LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 06-14-2005, 10:09 PM   #1
stefaandk
Member
 
Registered: Jun 2005
Distribution: Centos
Posts: 215

Rep: Reputation: 30
Can you untar selectively?


How would I go about untarring a particular file selectively out of a tarball (assuming it's possible) if I know the path/filename existing in the tarball?

Also been looking at cpio, would this maybe do it?

Thx

Stefaan
 
Old 06-14-2005, 10:15 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
Sure:

tar -xf filename.tar <name of file to extract>

Add the appropriate options if the tarball is gzipped, bzipped, etc.
 
  


Reply



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
SCIM chinese input works selectively (Mandrake 10) houshuang Linux - Software 50 05-10-2005 12:02 AM
How to selectively change permissions Xzanron Linux - Newbie 8 01-31-2005 08:59 AM
Selectively 'waiting' in a shell script subu_s Programming 2 12-20-2004 05:57 AM
cd rom drive selectively seeing CD's mat_uk111 Linux - Newbie 4 10-29-2004 10:11 AM
Program that can selectively download email? oot Linux - Software 2 01-02-2004 11:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:13 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
Open Source Consulting | Domain Registration