Thursday, May 31, 2012

zip and unzip in linux


To zip the directory, use the following command

         zip <archivename> <directoryname>

We dont need to mention the .zip extension with archive name.

Eg: zip myarc myfolder
We can see the myarc.zip file in the directory

To deploy the directory and sub directory, use the following command
 
         zip -r <archivename> <directoryname>

To unzip the archive file, use the following command,

         unzip <archivefile>.zip

No comments:

Post a Comment