Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I have a 'user1' account with the home folder set up. I'd like to create a 'user2' account with a copy of the same home folder setup. Is it possible to do this?
The following should work:
sudo useradd -m -k /home/user1/ user2
where -m says create the home dir, and -k provides the skeleton directory to
Required, but never shown