Sua pergunta já foi respondida aqui .
This is changed by changing the environment variable
PS1.You can see the current value of
PS1by:root@monu dev# echo $PS1You can see the value to be equal to
\u@\h \w\$, where:
\u: username\h: hostname\w: current working directory\$: a#symbol for the root user, a$symbol for other usersIf you want the change to be permanent, you have to add the script changing the value of
PS1in~/.bashrc, since that it gets executed every time a user logs in.