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

Re: Unusual termianl prompt?



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


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