change username in ubuntu 20.04 code example Example: rename username ubuntu 20.04 usermod -l <newname> -d /home/<newname> -m <oldname>