1.Reboot your computer and login as root
2.Open a terminal and Use blow command to change your username
usermod -l newname oldname
usermod -m -d /home/newname newname
4.Note:Of course you can combine step 2 and step 3 using below command
usermod -m -d /home/newname -l newname oldname
原文:https://www.cnblogs.com/zohar-fzh/p/14729903.html