• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 295
  • 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..?
1 Solution
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:
If you do have zip installed, then run

zip file.zip bigfile

or if you have gzip installed

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

no need to zip or whatever - just zip communications between hosts.
Build your data science skills into a career

Are you ready to take your data science career to the next step, or break into data science? With Springboard’s Data Science Career Track, you’ll master data science topics, have personalized career guidance, weekly calls with a data science expert, and a job guarantee.

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

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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