Moving only the contents of a map and not the map itself on linux
- by WebDevHobo
Using the cp command, one can move files and folders on linux.
I want to make a new user and move the contents of the skeleton map to their home directory.
I use this command:
cp -r /etc/skel/ /home/testuser/
However, this only creates a skel folder in testuser. The idea is that the contents of the /etc/skel folder be copied to /home/testuser, and not that a map be made in /home/testuser with those contents.
I've checked the man page: Link, but nothing on there really seemed like the solution to me.
Is there a way to do this, or do files really need to be moved manually, 1 by 1?