![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | 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. |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
.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??? |
| Forum Sponsor | ||
|
|
|
|||
|
Quote:
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. |
|
|||
|
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 |
|
|||
|
Quote:
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. |
|
|||
|
Quote:
For the same reason one might need a tool that lists a directory and to translate its contents into chinese - that doesn't mean it would be a good idea to incorporate a translator for chinese into "ls". If you buy tools (out in the real world, not on a computer) you'd usually buy screwdrivers, hammers, saws, etc.. These tools may serve only one purpose (a screwdriver for handling screws, a hammer for hammering, etc.), but ideally they serve this purpose well. If you try to buy a screwdriver which is a saw and a scissor and a hammer at the same time you'll end up with some sort-of "72-functions-swiss-army-knife", which does serve a lot of purposes all equally bad. bakunin |
|||
| Google UNIX.COM |