You can do this :
shopt -s dotglob
mv /tmp/home/rcook/* /home/rcook/
You can put
shopt -s dotglob
in your ~/.bashrc
if you want it to be the default.
See http://mywiki.wooledge.org/glob
Another approach to copy the dot files:
mv /tmp/home/rcook/.[!.]* /home/rcook/
Don’t use the pattern ..*
as it matches ..
(pointer to the parent directory). If there are files whose name begin with two dots (..something
), also use the pattern ..?*
.