Wednesday, June 11, 2008

Create zip file in linux command line

Create zip file in linux command line:-
Example 1: The command "zip -r d1" will compress all files & sub folreds under the folder d1, and create a single zip file
Example 2: The command "zip a.c b.c c.c" will compress three files (a.c b.c & c.c) and crreate a single compressed file named


K Dutta said...

I have done it.

Anonymous said...


If you want to zip a directory then you have to use

zip -r directory1 directory1


Alex said...

I had a lot of zip files on my PC. And once something happened with them. To my good fortune I quickly found out a good tool, which perhaps can decide different tasks - zip file repair.