Skip to content

Instantly share code, notes, and snippets.

@adityaiitb
Created July 25, 2020 22:42
Show Gist options
  • Save adityaiitb/9bdb0da5f265e0eb56d84b4dd459c95a to your computer and use it in GitHub Desktop.
Save adityaiitb/9bdb0da5f265e0eb56d84b4dd459c95a to your computer and use it in GitHub Desktop.
Examples of the zip command

To zip directory foo but exclude sub directories bar and baz.

zip -r myarchive.zip foo -x "foo/bar/*" "foo/baz/*"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment