Webhosting Blog

How to Zip a folder in linux?


You can zip a file easily in linux, but creating a zip of a folder is a bit tedious task. Following is a simple command to create a zip for a folder in linux.

[root@server~]# zip  -r  zipfile.zip  foldername

You can add the option -9 to the command for best compression.

Advertisements

2 responses

  1. You can use http://www.unziponline.net to zip and unzip files online

    December 12, 2011 at 5:42 pm

    • Thanks for the URL :) .

      December 13, 2011 at 4:28 am

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s