Solved

to zip

Posted on 2014-04-10
6
274 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
Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

 

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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Suggested Solutions

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.…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

778 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