LinuxQuestions.org
Help answer threads with 0 replies.
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 03-15-2002, 01:59 PM   #1
vofkid
LQ Newbie
 
Registered: Mar 2002
Location: Silicon Valley
Distribution: RH7.1, FreeBSD4.3
Posts: 15

Rep: Reputation: 0
How do I un tar a .tar, .tar.z, .tar.gz file


How do I un tar a .tar, .tar.z, .tar.gz file
-js
 
Old 03-15-2002, 02:31 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
rtfm time....

"man tar"
 
Old 03-15-2002, 02:32 PM   #3
d3funct
Member
 
Registered: Jun 2001
Location: Centralia, WA
Posts: 274

Rep: Reputation: 31
Untarring is easy just follow these steps:

If the file is named foo.tar use tar -xvf foo.tar
if is foo.tar.z or foo.tar.gz or foo.tar.tgz use tar -zxvf foo.tar
If your implementation of tar does not support the -z flag then you'll have to uncompress the files first use gunzip or gzip-d for .gz files, use uncompress for .z files and use unzip for .zip files, for tgz files gunzip should work. If fhe file is named foo.tar.bz2 or foo.tar.bz use bunzip or bunzip2 (whichever the ending is) as tar -z will not work on bzipped files. Hope this helps.
 
Old 03-15-2002, 03:35 PM   #4
Mystified
Member
 
Registered: Mar 2002
Distribution: Gentoo & Mandrake 10.1 OE
Posts: 96

Rep: Reputation: 15
Well being a Linux newbie myself and still having many old Windows habits the first time I downloaded a tar file I just automatically double-clicked on it and it unzipped itself. I also found I can right click and accomplish the same thing. I have GnoZip installed which is supposed to be the WinZip for linux.

I hope nobody will run me off the forum for that confession!
 
Old 03-15-2002, 03:54 PM   #5
d3funct
Member
 
Registered: Jun 2001
Location: Centralia, WA
Posts: 274

Rep: Reputation: 31
Quote:
I hope nobody will run me off the forum for that confession!
Line on the left, one cross each!!
 
  


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
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
Tar gives error when creating a tar file archive davidas Linux - Newbie 10 04-13-2004 01:35 AM
problem unzipping a tar.bz2 file tar: Error is not recov jyome Linux - Software 4 09-04-2003 02:04 PM
Diferance between rpm, tar, tar.gz, scr.tar, etc mobassir Linux - General 12 08-21-2003 07:30 AM


All times are GMT -5. The time now is 06:28 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