20021130 Saturday November 30, 2002

gunzip and tar You *nix gurus probably have know this for a while, but I didn't. To gunzip and untar a *.tar.gz or *.tgz file with one command, try this:

gunzip -c ips6.0.tar.gz* | tar xvf -

It works on Solaris (9) and OS X (10.2.2 with gnutar), and therefore I assume it'll work on Linux. I learned that at the portal class I taught last week. Good stuff, committing to memory... Posted in Mac OS X at Nov 30 2002, 09:09:50 AM MST 3 Comments

Comments:

How about tar xzf?

Posted by Aslak Hellesøy on November 30, 2002 at 09:35 AM MST #

Even better - thanks!

Posted by Matt Raible on November 30, 2002 at 10:01 AM MST #

It might be better to get in the habit of using gnutar(for X and solaris). gnutar -xvzf file.tar.gz

Posted by Steven on December 16, 2002 at 01:03 AM MST #

Post a Comment:
  • HTML Syntax: Allowed
Click me to subscribe
Matt Raible is a Web Architect who enjoys developing applications with open source technologies. Contact me for rates.
« November 2008
SunMonTueWedThuFriSat
      
1
2
3
6
7
8
9
10
11
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
      
Today

Recent Entries

Tag Cloud