Re: Unusual termianl prompt?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Tim Alberts wrote:
I'm used to the prompt on the terminal being something like

[user@host ~]$ -or- [user@host ~]#

I have a system that shows the prompt as

-bash-3.00#

when logged in as root.  However if I log in as a system user, it appears normal to me.

How is this configured and how do I make it 'normal'?


info bash, shell variables, bourne shell variables (PS1 and PS2)/bash
variables (PS3 and PS4).
PS1 is probably the one you care about.  You've said on another
thread that you're familiar with DOS, PS1 is roughly equivalent
to DOS's 'PROMPT'.

It's odd that you get '-bash-3.00#' though, I've only seen that
on systems at runlevel 1 (where I suppose .bashrc isn't run).
It's possible the root acount on that machine is missing .bashrc
or something.

Typically interesting per-user things are set in ~/.bash_profile

--
imalone


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux