enter code hereThe out put is showing you your username which is
You can either change your
username or change the
PS1 variable. Only do #1 or #2.
#1 Change your username to a name of your choice
The best way is to login via different account. The specific user account can't be active when making this modification. So you may have to create a temporary account with
sudo active, if you don't already have one.
Then from the other account run this command:
$ sudo usermod -l newname user
user is the current name being changed. The
newname is what it's being changed to.
Then you will have to move the directory to that new name. Do this with:
$ sudo usermod -d /home/user -m newname
#2 Change the PS1 variable in your
If you just want to have your name displayed in a special way you can edit the
PS1variable in your
~/.bashrc file. You can use the line below or any other variation. In this case the
newname in the line is what you would change to what you want to appear in your terminal prompt.
Adding user from the commandline
You can add a user from the commandline with:
$ sudo adduser usernametoadd
You can add this user to
sudoer access with:
$ sudo adduser usernametoadd sudo