How to zip a folder via SSH Terminal

zip -r filename.zip foldername/

This is how you can zip a folder via SSH on your Linux server. Works on Debian and other servers.

13 Comments

  1. Great thanks:)

    Reply
  2. Thank you 🙂

    Reply
  3. Thanks! better zip than tar…. 😉

    Reply
  4. Thanks that took 1 second to work.

    Reply
  5. thanks man, it’s rather simple

    Reply
  6. one line of code saved a lot!

    Reply
  7. Simple. To the point. Get’s the job done!

    Reply
  8. Thanks it helps me .

    Reply
  9. how can make zip silently that doesn’t output anything if there are thousands of folders and files inside foldername

    Reply
  10. thanks man, keep sharing bro!

    Reply
  11. thanks

    Reply
  12. Thanks man, that’s the tips that everybody want to find in the world wild web

    Reply
  13. always happy to find someone documented this in the web. I dont work with SSH daily so this helps a lot.

    Reply

Submit a Comment

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