So I know this is probably a pretty elementary task and I should know how to do this, and I kind of do, I'm just seeking some reasurance so I don't wipe my $HOME
.
Basically, as some of you will notice I've recently changed my username, so naturally I want to change my username on my machine also.
I have so far created another user pfr
and added it to groups: users, operator & wheel, set a login password and have it's $HOME
set to /home/pfr
What I need to do without fucking up is move my /home/dave
(which is obviously my current $HOME
for my current user dave
) including all of its contents, over to /home/pfr
As I understand it the correct command is:
# usermod -m -d /home/pfr dave
But I'm nervous and wanted to just ask people who are smarter than me.
I've also read a little about using vipw(8)
but I'm not sure about that either. If there is an easier way please shout out.
Cheers