How to zip a folder via SSH Terminal

This is how you can zip a folder via SSH on your Linux server. zip -r filename.zip foldername/