James R. Williams

ZIP the contents of the current folder into a zip with it’s parent directory as it’s name. Useful for zipping just the contents without the folder parent folder.

zip -r "${PWD##*/}".zip .

Zip the current directory into a folder called app.zip:

zip -r app.zip .

Especially useful for proprietary email clients, I'm looking at you Dell EMC, and certain manifest files.