I'm trying to copy an entire folder to another location by using 'cp' command, but it keeps giving me an error. I wonder how to copy a folder via SSH? thanks
what do you mean by another location - another server? Then use scp. For the normal copy you need -R for recursive. to copy across servers look in the manpages for the usage of scp: scp ./pathtolocalfolderorfile/ user@yourserver:/deistinationpath/
sorry about the confusion. But I want to copy a folder to somewhere on the same server. Can I use scp?
Than scp makes no sense if it's one the same server as it's the "same" as cp just based on ssh to transfer across servers. So what does not work with cp -r /copy/thissourcedir /intothisdestinationfolder/ ?