Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Change prompt

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
Lavene
Site admin
Site admin
Posts: 4958
Joined: 2006-01-04 04:26
Location: Oslo, Norway

Change prompt

#1 Post by Lavene »

This is more out of curiosity than necessety. In terminal, the prompt for regular users is "username@hostname:~$" but as root it's just "hostname:~#"

Is there a way to (permanently) change the root prompt to "root@hostname~#"

I think it looks cleaner in a way...

Tina

User avatar
mamars
Posts: 4
Joined: 2005-11-21 18:46
Location: Germany

#2 Post by mamars »

Have a look at /root/.bashrc for a start...

so long
mamars

User avatar
dawgie
Posts: 430
Joined: 2004-06-16 21:30
Location: New Hampshire USA

#3 Post by dawgie »


Lavene
Site admin
Site admin
Posts: 4958
Joined: 2006-01-04 04:26
Location: Oslo, Norway

#4 Post by Lavene »

dawgie wrote:There is a very good how-to
http://www.tldp.org/HOWTO/Bash-Prompt-HOWTO/
Thanks! Just what I needed :)

Tina

Post Reply