Zip the folder

i want the scripts or unix command to zip the folder.

First create a tar

tar -cvf folder.tar <foldername>?*
then,
gzip folder.tar

Hi Kingganesh,

Did the answer work ? if yes, reply.

Hi deepak,

  Thanks for ur opt solution. Yes it is working.