I want to change the user that is displayed in the linux terminal. Try this command
sudo usermod -c "Nuevo-Nombre-Usuario" nombredeusuario
But it does not do it, it always continues to show me the same user in the terminal.
I want to change the user that is displayed in the linux terminal. Try this command
sudo usermod -c "Nuevo-Nombre-Usuario" nombredeusuario
But it does not do it, it always continues to show me the same user in the terminal.
Command
Explanation
As the usermod documentation indicates :
Whose translation would be:
actual example
Note for Ubuntu
For the case that you use Ubuntu, I would recommend that you do the following:
1) Login to your terminal as root:
2) Change the key of
root
:3) Log out of Ubuntu. 4) Enter a virtual terminal, executing the combination:
Ctrl Alt F4
5) Login as
root
.6) Run the command:
7) Go back to your graphic session:
Ctrl Alt F7
8) Sign in.
If you only want to change the name that is displayed in the console, just change the value of
PS1
en~/.bashrc
in your specific case
Save changes and you're done.
You can also directly change the value in console