Moving only the contents of a map and not the map itself on linux

Posted by WebDevHobo on Super User See other posts from Super User or by WebDevHobo
Published on 2010-06-17T17:19:50Z Indexed on 2010/06/17 17:24 UTC
Read the original article Hit count: 253

Filed under:
|
|

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?

© Super User or respective owner

Related posts about linux

Related posts about command-line