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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to zip files in UNIX

Status
Not open for further replies.

guzler

Technical User
May 28, 2003
10
US
Hello,

Can anyone help me with the right syntax ..

Thanks,
 
Will this syntax work gzip file1.txt ..

Also How do send the zip files in an e-mail ..

Thanks in advance
 
gzip -9 file.txt will compress in the highest compression, you can try gzip -h for more help topics

But it depnds on the Unix if gzip is available or addon

hth
uwe
 
appi

I did try gzip -9 filename.txt and When I ftp back to WINDOWS I am not able to view the file .. I see all funky characters ..

How do I resolve this ..

Thanks in advance ..
 
Like :-
AΔqC‡Å:rä “‡’7mÊX æNºa8±âÅ)pÞÐéh‘E’é¤±SF8f€˜I³6s‚ˆÃÆM@kސqà ?ƒ†QI•Ò¼£†‹PqJ­Ãi.aÊTªU)ŽžQ·î„‘6–U
4jp:ÃÆÕ¨nŒv·Ò3fàpC¹ó¥7Bç½nŽo›–ü¶†ŒäË¥¶Ô|pÁ¹ëœÑ5·hµ4r´u1”}N\ECbH1¦žx¯½¤Ÿ»N7¯*Ã
1äà_N3`e߃3Ù ÃgRHSuWöT† m’ÍÒyå`Š6Ñàׄ@‚@•5„…UzfH× Æ€âk9LGC€ÍvŸmÁ9ÚPVÅ@CŒk1X£‚2ทŽ£MVÓ

You'll have to unzip it - and your windows unzip will not be the same as the unix zip, I betcha !

Dickie Bird (:)-)))
 
I did unzip it and it still shows up the same ..
 
I tried both ASCII and BINARy modes it nis still the same ..
 
Try zip from info-zip.org. It should be supported by Winzip or Pkunzip on your windows box. You can compile the source or find a copy on bullfreeware.com or UCLA's site aixpdslib.seas.ucla.edu/aixpdslib.html. I think there is a version of gunzip out there that will run on windows but I can't seem to remember where I found it.

[morning] needcoffee
 
if you want to zip more than 1 file, you might be better off using 'tar' (gnu tar if it is available does gzip if you specify the 'z' option) eg.

Code:
tar zcvf zippedfile.tgz directory/.
 
try

tar -zpcvf whereya-wantfile-saved.tgz path-to-dir-being-tarred

example i did something like this on my unix box

tar -zpcvf /var/bkup/apache.tgz /usr/local/apache

loqtis
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top