The default prompt will be
root@monu dev]#
Can we change the "root@monu" part and give it a desired name?
|
|
|
This is changed by changing the environment variable You can see the current value of
You can see the value to be equal to
If you want the change to be permanent, you have to add the script changing the value of |
|||||||||||
|
|
This depends on your shell. As an important side note, you should never use the root account as a personal account. Create a normal user and set up access to sudo. Please check your distribution manual as to how to do this. In zsh, you need to set the PROMPT variable like so:
zshell offers a lot of other options and this is really a minimal prompt. In bash, you can set it this way:
Note that in both cases, I have a 256 colour enabled terminal. The man page will help a lot ( |
|||||
|