• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 292
  • Last Modified:

to zip

one of the file in the location is very large
I want to zip it to help the space..
later on I want to unzip it in aix

what is the command..?
0
tonydba
Asked:
tonydba
1 Solution
 
woolmilkporcCommented:
AIX does not come with a compression utility other than "compress" by default.

There are AIX RPMs for zip/unzip, gzip/gunzip and more. See below!

If you're willing and allowed to install (one of) the utilities on AIX, and if you don't have done so already, please let me know. I'll assist you then, and once  installed you can use their counterpart on Linux to compress the file and the newly installed AIX tool to decompress it, as well as vice versa.

If you can't install any third party tool on AIX, however, you will have to rely on "compress/uncompress".

On Linux run "compress bigfile". You will get a compressed file "bigfile.Z".
Once this file has been transferred to AIX run "uncompress bigfile.Z" there and you will get back the uncompressed file "bigfile".

FYI, the RPM packages for AIX can be downloaded from here:
http://www.perzl.org/aix/index.php?n=Main.Gzip
http://www.perzl.org/aix/index.php?n=Main.Zip
http://www.perzl.org/aix/index.php?n=Main.Bzip2
...
0
 
TintinCommented:
If you do have zip installed, then run

zip file.zip bigfile

or if you have gzip installed

gzip bigfile
0
 
gheistCommented:
cat file | ssh -C user@aix "cat > file"

no need to zip or whatever - just zip communications between hosts.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
tonydbaAuthor Commented:
Cat with redirectional operator helps.
0
 
woolmilkporcCommented:
You said you needed compression "to help the space" not to improve transfer speed.
0
 
gheistCommented:
As you may spot - streaming file directly over the wire will eliminate need for temporary file on both systems....
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now