I want to copy the contents of an unzipped folder,
wordpress/, to another existing folder.
cp -R wordpress/*.* /my/folder
but the sub-folders in
wordpress/ didn't get copied over.
Stack Exchange network consists of 181 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.Visit Stack Exchange
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
cp -r wordpress/* /my/folder
If you have hidden files/directories then you'll need to run the following from inside the source directory
tar pcf - .| (cd /path/to/destination; tar pxf -)
that will copy all files and folders including ones starting with a . (dot).
If you don't have hidden files/directories that need to be copied then wliao's answer will do.
(edited for clarity)