Zip file via ssh
-
How many of you know how to zip a file by ssh
# zip -r example.zip www This zips all files and directories- -r:Includes all files and directories -> Files
- example.zip:The zip file you want to create
- www : The folder you are targetting or use * if your currently in the folder.
Comments are invited!
2 Comments
Leave a Comment


June 20th, 2009 at 2:50 pm
cool.. thanks..
October 2nd, 2011 at 9:13 am
Nice trick. Now this seems very simple but this may be one of the best methods for zipping directories and files. I do appreciate you sharing with us valuable information again and again.