LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 11: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, 11:15 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Sure:

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

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


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


All times are GMT -5. The time now is 04:15 PM.

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