Solved

to zip

Posted on 2014-04-10
6
254 Views
Last Modified: 2014-10-14
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
Comment
Question by:tonydba
6 Comments
 
LVL 68

Expert Comment

by:woolmilkporc
Comment Utility
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
 
LVL 48

Expert Comment

by:Tintin
Comment Utility
If you do have zip installed, then run

zip file.zip bigfile

or if you have gzip installed

gzip bigfile
0
 
LVL 61

Accepted Solution

by:
gheist earned 500 total points
Comment Utility
cat file | ssh -C user@aix "cat > file"

no need to zip or whatever - just zip communications between hosts.
0
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 

Author Closing Comment

by:tonydba
Comment Utility
Cat with redirectional operator helps.
0
 
LVL 68

Expert Comment

by:woolmilkporc
Comment Utility
You said you needed compression "to help the space" not to improve transfer speed.
0
 
LVL 61

Expert Comment

by:gheist
Comment Utility
As you may spot - streaming file directly over the wire will eliminate need for temporary file on both systems....
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now