LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Root sign has been changed? (https://www.linuxquestions.org/questions/linux-newbie-8/root-sign-has-been-changed-4175539712/)

mhsahkir 04-14-2015 02:55 PM

Root sign has been changed?
 
1 Attachment(s)
When i logged in as a root,generally it should be show me # sign, but somehow it has been changed and showing $ sign as a root privilege.

T3RM1NVT0R 04-14-2015 03:15 PM

You have not posted the output as requested for this issue under the following thread: http://www.linuxquestions.org/questi...er-4175539330/

joe_2000 04-14-2015 03:25 PM

The prompt is specified by the PS1 variable. This in turn is typically set in the .bashrc.

You presumably want something like this
Code:

PS1='[\u@\h:\w]# '

mhsahkir 04-15-2015 02:37 AM

Thanks a lot guys, specially @joe.

mhsahkir 04-16-2015 02:41 AM

Quote:

Originally Posted by joe_2000 (Post 5347404)
The prompt is specified by the PS1 variable. This in turn is typically set in the .bashrc.

You presumably want something like this
Code:

PS1='[\u@\h:\w]# '

Hi joe this code does worked but when i reboot the system,its came back($ sign) the way it was. Do you know where i can edit it and keep this sign permanent?

T3RM1NVT0R 04-16-2015 04:45 AM

You can put this code in /root/.bashrc file or /root/.bash_profile file to make it permanent.


All times are GMT -5. The time now is 01:25 AM.