LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 09-29-2003, 05:12 AM   #1
ust
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, 05:53 AM   #2
WiZaC
Member
 
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 =)
WiZaC
 
Old 09-29-2003, 06:37 AM   #3
JamesM
Member
 
Registered: Jul 2003
Location: london (UK)
Distribution: slackware 9.0
Posts: 36

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

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

Rep: Reputation: 52
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, 08:30 AM   #5
coolguy
LQ Newbie
 
Registered: Sep 2003
Posts: 1

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

Rep: Reputation: 15
Huh?

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


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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