Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 09-29-2003, 06:12 AM   #1
Senior Member
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Rep: Reputation: 31
About Tar

I used the tar command "tar -zcvf " to backup some files ( eg. file a , file b , file c , file d ... ) to a .tgz file , is it possible to extract one of file in this tgz file instead to use "tar -zxvf" to extract all the files ? thx
Old 09-29-2003, 06:53 AM   #2
Registered: Sep 2003
Location: Denmark
Distribution: FreeBSD
Posts: 110

Rep: Reputation: 15
Yeah, If you use a program, like midnight commander or something :] I dont know exactly what program, who is the best, to linux! =) but yes, you can extract one file or something, then you dont need to extract all the shit =)
Old 09-29-2003, 07:37 AM   #3
Registered: Jul 2003
Location: london (UK)
Distribution: slackware 9.0
Posts: 36

Rep: Reputation: 15
"tar -zxvf [] [filename.within.archive]"

it takes almost as long as extracting the whole archive!
Old 09-29-2003, 07:45 AM   #4
Registered: Jan 2002
Location: Missoula. Montana, USA
Distribution: Slackware (various)
Posts: 460

Rep: Reputation: 42
Yes, the extraction probably only saves the io for writing the output files. tar is not a random access archive, but was designed for tapes. It probably stood for Tape ARchive, though I always think of it as tar as in road, just one long endless strip. To get to where you are going you have to travel the whole road.

Forgive this mindless blither in the morning before coffee.
Old 09-29-2003, 09:30 AM   #5
LQ Newbie
Registered: Sep 2003
Posts: 1

Rep: Reputation: 0
sorry no idea
Old 09-29-2003, 09:40 AM   #6
Registered: Jul 2003
Location: london (UK)
Distribution: slackware 9.0
Posts: 36

Rep: Reputation: 15

What's the point of telling us you don't know?


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 can i decompress this tar.tar file? hmmm sounds new.. tar.tar.. help ;) kublador Linux - Software 14 10-25-2016 03:48 AM
tar tar cvf - . | (cd /root/; tar xvf -) ewt3y Linux - General 10 02-19-2014 11:55 AM
a tough question 4 u, problem in extracting tar & tar.gz files p_garg Linux - General 5 11-08-2010 12:02 PM
.rpms, .tar.gz, .tgz, .src.rpm, & .tar.bz2 whoots Mandriva 10 10-18-2003 01:08 PM
Diferance between rpm, tar, tar.gz, scr.tar, etc mobassir Linux - General 12 08-21-2003 07:30 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:07 AM.

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
Open Source Consulting | Domain Registration