Zip A Folder

Linux and Free BSD, how to zip a folder. This is useful for backups, or moving to a new webhost.

zip -9 -r zipname folder

example: zip -9 -r myfolder.zip examplefoldername

-9 = best compression
-r = recursive

This entry was posted in tools and tagged , . Bookmark the permalink.

2 Responses to Zip A Folder

  1. kangmid says:

    be sides For compression data, using TAR under Linux is the Best tool and solussion of compression data.

  2. Gadhadhraya says:

    This may not be revelant but i figured i’d post this anyway. If you’re using ubuntu 8.10 you may be in for some issues with the network manager. For some unknown reason it stops functioning. You will need to manually set you’re resolv.conf with your ISP’s DNS servers. That file is located in /etc/network/resolv.conf

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>