To manage every aspect of the user database, you use the
To change username (it is probably best to do this without being logged in):
usermod -l newUsername oldUsername
This however, doesn’t rename the home folder.
To change home-folder, use
usermod -d /home/newHomeDir -m newUsername
after you changed the username.