Operating System - HP-UX
1820072 Members
2658 Online
109608 Solutions
New Discussion юеВ

How to zip files and directories in hp-ux

 
Deepu Chakravarty
Regular Advisor

How to zip files and directories in hp-ux

How to zip file and directores in hp-ux ?
3 REPLIES 3
Vijaya Kumar_3
Respected Contributor

Re: How to zip files and directories in hp-ux

There are many methods. mostly used one:


cd /home/tst

tar -cvf /backup/tst.tar ./*

compress /backup/tst.tar


Thanks
Vijay
Known is a drop, unknown is ocean - visit me at http://vijay.theunixplace.com
Vijaya Kumar_3
Respected Contributor

Re: How to zip files and directories in hp-ux

Also, you can use gzip and gunzip:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=24266

Known is a drop, unknown is ocean - visit me at http://vijay.theunixplace.com
Sunil Sharma_1
Honored Contributor

Re: How to zip files and directories in hp-ux

Hi,

Files you can zip using various commands like.

compress
gzip
zip

and for directory, first you have to make a tar file using tar command and then zip file using above command.


Sunil
*** Dream as if you'll live forever. Live as if you'll die today ***