How to zip a folder ( directory ) in linux with ssh terminal ?

you can simply use this command: 

“zip -r file.zip folder/”

for better compression you can use:

“zip -9 -r file.zip folder/”

for faster compression:

“zip -1 -r file.zip folder/”

 

 

Advertisements