-   Linux - Newbie (
-   -   Terminal : user@localhost => bash-2.05a$ (

storm 03-09-2003 04:51 PM

Terminal : user@localhost => bash-2.05a$
Hi all,

First of all, this is a great site, especially for a newbie like me who just installed RH7.3 last week. Keep it up !

I have a little problem and I couldn't find anything like that here at the Newbie section, so I hope it's not a double post.

Anyway I was playing around in the terminal and the result is that when I switch to 1 of the users I created, I get 'bash-2.05a$' at the prompt instead of 'user@localhost'.
Problem is that I don't know what I did to get this result.
Could anyone tell me what this is about and how I can switch back to 'user@localhost'. Or just tell me in what direction I have to look cause I'm really new at this, but willing.

thx in advance

storm 03-09-2003 05:11 PM

I was trying to do something with the .bashrc but things didn't work out the way I thought. So I guess that it went wrong there. I'm pretty sure that I didn't make any changes to the file. But what do I know :-) Anyway this is fun.


trickykid 03-09-2003 05:19 PM

You'll want to add something like this to your users .bashrc file in their home directory:

PS1="[\u@\h \W]\\$ "

Which will give you an output that looks like this:

[username@host home]$

Which is basically displaying the username, host your logged into, the present working directory your in and then the $ prompt..

man bash for more details.

storm 03-09-2003 05:22 PM

Thx for the quick reply, and I'll take a look at the man pages.


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