Thursday, May 14, 2009

Using Zip Command Under Linux

It's a simple command, but I keep forgetting the correct syntax every now and then. So I just log it here.

zip -9 {archive_name}.zip {path_to_your_folder}/*

This will zip all the files under a specific folder. -9 refers to best compression. Reduce it to lower value -1 to -8 for faster compression and decompression.

No comments: