Change user ID from terminal
Hi there:
my username is as follows:
jvelarde@jvelarde ~]$
and i want to change is to:
PC1@jvelarde ~]$
I use fedora23, thanks for the support
Hi there:
my username is as follows:
jvelarde@jvelarde ~]$
and i want to change is to:
PC1@jvelarde ~]$
I use fedora23, thanks for the support
Your username is jvelarde, the prompt is showing your username and hostname that seems to be jvelarde too. Use hostnamectl
to set, display, manipulate the hostname. Then prompt will show something like jvelarde@PC1
edit ~/.bashrc to change how prompt is displayed. Have a look here: http://www.linuxselfhelp.com/howtos/Bash-Prompt/Bash-Prompt-HOWTO-2.html
And if you are running Gnome, and want to change your hostname (shown in bash behind the @
), then click on Settings --> Details.
Of you really want to change your username from jvelarde to PC1 (what i doubt), you can use a graphical program called system-config-users
.
You can use the command usermod -l newuser olduser
to change the username. But you will probably want to change the home directory as well, so use usermod -l newusername -d /home/newusername oldusername
and then do mv /home/oldusername /home/newusername
.
Asked: 2016-11-17 06:24:22 -0600
Seen: 630 times
Last updated: Nov 17 '16