zip on linux

August 31, 2009 at 11:39 am | In Linux Basics | Leave a Comment

zip the files and folders:

Syntex:

zip -9 -r <zip file> <folder name>

Where,

-9 —> for best compression.

-r Travel the directory structure recursively

The compressed file works fine with Windows XP compression tool.

Ex:

[root@linux home]# zip -9 -r test.zip test/

To zip a single file:

zip -9 <zip file> <filename>

No Comments Yet »

RSS feed for comments on this post. TrackBack URI

Leave a comment

XHTML: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Blog at WordPress.com. | Theme: Pool by Borja Fernandez.
Entries and comments feeds.