How to change the display of the username on the Ubuntu terminal

Asked

Viewed 757 times

-2

inserir a descrição da imagem aqui

How can I change my username display on the terminal ? With this very large text, ends up disturbing.

  • 1

    This question seems to me outside the scope, as it is asking how to change the user name of the operating system.

  • @Articuno I think he does not want to change the name of the terminal, he wants a solution to decrease the name that is appearing before the command (this also disturbs, in my opinion), but I believe that the question is not up to the site. I’ll see if there’s anything on the SOEN to confirm.

  • It’s just the display of the name itself

  • @Rafaeláquila the question escapes the scope of our site, but you can try this reply

  • Answer of another closed question here: https://answall.com/a/30435/28595

  • If the problem is aesthetic, just change the prompt, no need to change the name. See the environment variable PS1. You can change the variables to simply not show the station/host name. See variables here: https://bash.cyberciti.biz/guide/Changing_bash_prompt

Show 1 more comment

1 answer

-1


What is long in this case is the name of the operating system. Edit the file:

/etc/hostname

and change with the name you want. The change will be made at the next login.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.