Copy directory contents using 'cp' command

Solution 1:

Try:

cp -ra /backup/olduser/. /home/newuser

Solution 2:

Two directories a and b.

Both have files in.

You are in a directory that contains a and b.

cp -r ./a b

-r = recursively.