mac zip command
zip -q -r -m [yourName].zip someThing
Reference: http://www.cnblogs.com/davidxie/archive/2012/11/23/2784646.html
-q means do not display compression progress status
-r means that all sub-directory sub-files are compressed into zip //This is more important, otherwise only the folder of something is compressed, and the inside is not compressed.
-e means that your compressed file needs to be encrypted, the terminal will prompt you to enter the password
// There is also an encryption method, which is done directly on the command line, such as zip -r -P Password01! modudu.zip SomeDir, just use Password01! to encrypt modudu.zip.
-m means to delete the original file after compressing
-o means to set the last modification time of all compressed files to the current compression time
This is how it works when across directories
zip -q -r -e -m -o '\user\someone\someDir\someFile.zip' '\users\someDir'