copy a directory in linux

I’ve been throwing around some websites from one server to another, and this command really comes in handy to copy an entire folder to a new distination under linux.

cp -R origindir/ destinationdir/

This copies the entire ‘origindir’ to ‘destinationdir’. Simple, but effective.

Leave a Reply