LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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
 
LinkBack Search this Thread
Old 01-27-2007, 01:17 PM   #1
willyweedle
LQ Newbie
 
Registered: Jan 2007
Location: Arkansas
Distribution: Zenwalk as desktop, Zenlive as router, XP as game box
Posts: 19

Rep: Reputation: 0
newb question - opening *.tgz files


It shames me to ask this. How do I open *.tgz files?
 
Old 01-27-2007, 01:30 PM   #2
opto
Member
 
Registered: Jun 2006
Location: Pennsylvania
Distribution: Slackware64 , OS X , OpenBSD
Posts: 56

Rep: Reputation: 15
Code:
user@terminal:$ tar -zxvpf foo.tgz
 
Old 01-27-2007, 02:13 PM   #3
linuxone
LQ Newbie
 
Registered: May 2006
Posts: 15

Rep: Reputation: 0
Quote:
Originally Posted by willyweedle
It shames me to ask this. How do I open *.tgz files?
the first response is correct but for an expanded explanation.

.tgz short for .tar.gz

tar files are archives which contain multiple files. kind of like a zip file but without compressing them.

.gz infers that a file is compressed using gzip.

so file.tar.gz is a gzip compressed tar file.

basically one is not required for the other, you can compress a single file with gzip without tarring it, and files can be tarred without being gzipped.

other compression methods can be used, you may see files with a .tar.bz2 extension. this is similar to the above, but uses bzip2 compression which is better than gzip.

uncompressing a .tar.bz2 file is similar to the tar.gz. tar -xjvf file.tar.bz2

read the man file on tar, so you understand the flags being passed to it.
 
Old 01-27-2007, 04:50 PM   #4
willyweedle
LQ Newbie
 
Registered: Jan 2007
Location: Arkansas
Distribution: Zenwalk as desktop, Zenlive as router, XP as game box
Posts: 19

Original Poster
Rep: Reputation: 0
thanks dudes!
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
when .tgz files are downloaded they turn into .tar files?!?! Flz Slackware 10 12-20-2005 02:32 PM
opening .tgz files tuxfood Red Hat 1 01-08-2004 01:23 PM
Starnge error when opening a tgz file wtih MC rmocius@auste.e Slackware 4 12-01-2003 02:10 AM
opening port, newb alert :) ratty007 Linux - Networking 2 03-24-2003 10:38 AM
tgz files Chijtska Linux - General 1 02-07-2002 01:44 PM


All times are GMT -5. The time now is 01:43 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration