Monday, March 23, 2015

Linux: Zipping files in Linux

My co-worker Ken shared this with me.



Here is how I am zipping files:

First, navigate to the directory where the files are located. Then, 

zip –mT  abc  abc*

This creates the archive abc.zip, then adds to it all files in the current directory named like abc*, then tests the archive (the T option), then if test is OK, deletes the files (effectively moving the files to the zip archive (the –m option)).





No comments:

Post a Comment