LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Bash promt for root? (https://www.linuxquestions.org/questions/linux-newbie-8/bash-promt-for-root-116003/)

merkka 11-14-2003 12:21 PM

Bash promt for root?
 
Hello,
I can change my bash shell prompt by editing the file
in my home directory. I just define a variable PS1.

that's ok, but how can I do the same for the root?
what file should I edit?

:newbie:

druuna 11-14-2003 01:13 PM

/root/.bashrc or /etc/profile (some distro's use: /etc/bash.bashrc)

Your current prompt for root (= UID 0) is set in /etc/profile (or /etc/bash.bashrc)

If you go for the .bashrc solution and /root/.bashrc does not excist, you safely can create it.


All times are GMT -5. The time now is 08:46 PM.