How to create zip file of a folder using SSH

Step 1

Navigate to the directory where the folder is located. Let’s say we want to create zip file of following folder.
/home/lophost/folder_name

So, we will navigate to /home/lophost directory.

cd /home/lophost

Step 2

Now run following command to create zip file of folder /home/lophost/folder_name

zip -r file_name.zip folder_name/

Done!!

Leave us a Reply

Your email address will not be published. Required fields are marked *

* *