ubuntu change name of login code example
Example: ubuntu rename user login
#As root / or as another user.
# Kill the processes of the user to rename
pkill -u <OldLoginName>
#Rename user login
usermod -l <OldLoginName> <NewLoginName>
#Rename HomeDir
sudo usermod -d /home/NewHomeDir -m NewLoginName