I want to copy the contents of an unzipped folder, wordpress/
, to another existing folder.
I tried
cp -R wordpress/*.* /my/folder
but the sub-folders in wordpress/
didn't get copied over.
Why not?
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 communitytry
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)