How to create zip file of a folder using SSH

ssh-and-zip

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!!

Our Top Rated Host

Related Posts