Since OSX is based on Unix there are a lot of ways to compress files and folders, below are a few options using the command line interface. The default command line application interface in OSX is the Terminal and stored in /Applications/Utilities