Solved

to zip

Posted on 2014-04-10
6
277 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
ID: 39992437
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
ID: 39993041
If you do have zip installed, then run

zip file.zip bigfile

or if you have gzip installed

gzip bigfile
0
 
LVL 62

Accepted Solution

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

no need to zip or whatever - just zip communications between hosts.
0
Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

 

Author Closing Comment

by:tonydba
ID: 40381287
Cat with redirectional operator helps.
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 40381291
You said you needed compression "to help the space" not to improve transfer speed.
0
 
LVL 62

Expert Comment

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

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
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.

713 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