alternative for Archieve

Hi all ,

  In order to zip the file ...

first we need to use TAR and then GZIP on the TAR file .....

Is there any other method for zipping the files directly as in windows ( winzip )

Regards,
Dhananjay

Compress will do it however I believe the gzip is a better zip algorithimn.

Im trying to use 'the dark side of the force' :stuck_out_tongue: to guess what you mean: Are you looking for zip for unix, cause they exist !

ZIP for hpux http://hpux.connect.org.uk/hppd/hpux/Misc/zip-2.32/
ZIP for aix http://aixpdslib.seas.ucla.edu/packages/zip.html
ZIP for sun see http://sunfreeware.com/

Not necessarily. You can do it in "one line". There are, at least, two possibilities:

  • Your tar version supports "z" option:
# tar&compress
tar cvzf file.tar.gz (files you want to tar)
# uncompress&untar
tar xvzf file.tar.gz
  • No "z" option:
# tar&compress
tar cvf - (files you want to tar) | gzip -c > file.tar.gz
# uncompress&untar
gunzip -c file.tar.gz | tar xvf -

:wink: