Digital Media Insights for Business Owners

How to zip from command line mac

Zip

Compressing files, or zipping files is not complex at all, however, when you are trying to do it from the command line it can be tricky to remember how to do it properly. So here is a quick and easy tutorial and how to zip the proper way!

Zip Flags

The command that you would use in the command line (bash) on Mac OS X would be “zip.” But one of the most imporant aspects is what flags to use.

Here is a list of the most important flags:

Actual implementation of ZIP in the command line

				
					# zip -flags {file_name} {directory or file to zip}

# For example
zip -r myzip.zip ~/Desktop/test-directory/
				
			

Hope that is helpful! Until the next time —happy zipping!

Say: "Hola" to your new clients.

Follow us on Social Media for more Tips & Tricks.

Other Posts You May Enjoy