Random Linux

Linux, video games and web hosting

To zip particular files, you can use the following:

zip yourarchive.zip file1 file2 file3

To zip full directories recursively, you will add the -r flag.

zip -r nameofyourarchive.zip folder

That will zip everything everything that is in the folder that you choose, including any other folders that are inside of it.

Know of other ways to zip up files? Let us know in the comments!

October 23rd, 2011

Posted In: How To

Tags: , ,

Leave a Reply

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