via ssh i would like to zip an entire directory, but how?
I'm very new to linux and can't seem to find out how to do this. I'd like to know the command line to copy one of my directory folders and zip it. For example this directory has 3 gigs of files in it, so instead of ftp'ing this entire thing down file by file i'd like to ssh to my filesystem, enter a command that generates a zip of the directory (but leaves the current directory alone). Thanks for any help!
MediaLayer, LLC - www.medialayer.comLearn how we can make your website load faster, translating to better conversion rates for your business!
The pioneers of optimized web hosting, featuring LiteSpeed Web Server & SSD Storage - Celebrating 10 Years in Business
if your folder has subfolders you will need -r flag
zip -r filename.zip foldername/
Thanks for the info, but i am worried how long this could take. I did this for a test folder and it gave the entire output while it zipped. The folder i want to zip has 10,000's of files so my terminal might be scrolling output like this for hours. Is there a way to do the above without it showing the entire output in progress? Here is the terminal output from my test: