Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 06-14-2005, 10:09 PM   #1
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?


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

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371

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

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


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 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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:41 PM.

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