Navigate to the directory where the folder is located. Let’s say we want to create zip file of following folder.
So, we will navigate to /home/lophost directory.
Now run following command to create zip file of folder /home/lophost/folder_name
zip -r file_name.zip folder_name/