The UNIX Forums  

Go Back   The UNIX Forums > OS Specific Forums > AIX
Google UNIX.COM
Home Forums Register Rules & FAQ Members List Arcade Search Today's Posts Mark Forums Read


AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.


Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-25-2008
Registered User
 

Join Date: Apr 2008
Posts: 3
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
.tar and .tar.gz

a question that maybe has nothing to do with AIX, but on AIX it causes me to do two commands, while i can do it on linux in one command.

why are files always compressed in .tar.gz ???
i don't see the benefit over just compressing it to .tar

on linux i can decompress .tar.gz files with tar -zxvf file.tar.gz

on Aix i have to to first gunzip file.tar.gz, and thereafter tar -xvf file.tar. is there a way to do it in one command on aix???
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 04-25-2008
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 3,221
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
Quote:
i don't see the benefit over just compressing it to .tar
.tar is not compressed at all, it is just an archive format.

Linux (GNU tar) has non-standard extensions added to tar that other implmentations of tar do not have. If the extra typing is a problem write a short shell script to do it.
Reply With Quote
  #3 (permalink)  
Old 04-25-2008
grial's Avatar
El UNIX es como un toro
 

Join Date: Jun 2006
Location: Madrid (Spain)
Posts: 531
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
Quote:
Originally Posted by jim mcnamara View Post
.tar is not compressed at all, it is just an archive format.
Exactly. A tar file is like a "package" but not compressed at all.
A .tar.gz (or .tgz in some cases) is just a gzip compressed tar file.
Quote:
Originally Posted by jim mcnamara View Post
Linux (GNU tar) has non-standard extensions added to tar that other implmentations of tar do not have.
In this case, that extension is the "z" flag. Have a look to gtar man pages.
Quote:
Originally Posted by jim mcnamara View Post
If the extra typing is a problem write a short shell script to do it.
For instance, in one line:
gzip -c myfile.tar.gz | tar xvf -
or
tar cvf - whatever | gzip -c > myfile.tar.gz
Regards.
Reply With Quote
  #4 (permalink)  
Old 04-25-2008
Bughunter Extraordinaire
 

Join Date: May 2005
Location: In the leftmost byte of /dev/kmem
Posts: 913
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
I would like to add that archiving and compressing are two distinct independent tasks. It is not very "UNIX-like" to combine distinct tasks into one tool, so GNU-tar, as handy as it may be, is a little bit against the cultural tradition of UNIX.

bakunin
Reply With Quote
  #5 (permalink)  
Old 04-25-2008
Registered User
 

Join Date: Oct 2003
Location: Singapore
Posts: 1
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
Quote:
Originally Posted by bakunin View Post
I would like to add that archiving and compressing are two distinct independent tasks. It is not very "UNIX-like" to combine distinct tasks into one tool, so GNU-tar, as handy as it may be, is a little bit against the cultural tradition of UNIX.

bakunin
I agreed GNU-tar is "against the cultural tradition of UNIX" but assume if we need to ftp many directory from one server into another every hours ??
1: maintain the dir
2: reduce the size so that FTP faster
By using GNU-tar it save us a lot of time,i believe.
In my environment we need to sync data between server in different country, this work the best.
Reply With Quote
Google UNIX.COM
Reply



Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 11:05 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
UNIX Forum Content Copyright ©1993-2008 SilkRoad Asia All Rights Reserved -Ad Management by RedTyger

Search Engine Optimization by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102