Generate a zip from the terminal

1 min read

Here's a quick command for generating a zip from the terminal.

Run in the directory you'd like to zip:

zip -r zip.zip ./ -x *.git* -x *.zip*

Zip is a command line utility and you can find the man page here.

You can also view the man page in your terminal with the command:

man zip