Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

compress files into singlefile

Status
Not open for further replies.
May 22, 2003
25
US
Hi,

Do we have option in AIX that compress number of files into single file.i mean to say that if we have
/tmp/a
/tmp/b
/tmp/c files
and i would ile to compress those in singlefile /tmp/test.Z like pkzip command in windows.

Thanks in advance
AIX SUPPORT
 
Well, you can use tar for that, and then either gzip or compress the tar file afterwards.



IBM Certified Confused - MQSeries
IBM Certified Flabbergasted - AIX 5 pSeries System Administration
MS Certified Windblows Rebooter
 
Unfortunately AIX (I may be wrong, it may work using the GNU tar version) isn't as easy as linux, on linux you can simply do both in the same go, e.g.:

tar cvzf a_name.tgz dirname (which will give you a gzipped tar file of the directory all in one go)

Unpacking is the reverse: tar xvzf a_name.tgz

IBM Certified Confused - MQSeries
IBM Certified Flabbergasted - AIX 5 pSeries System Administration
MS Certified Windblows Rebooter
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top