Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

to zip

Posted on 2014-04-10
6
276 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
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 

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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

The purpose of this article is to demonstrate how we can use conditional statements using Python.
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

860 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