Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-09-2003, 04:51 PM   #1
LQ Newbie
Registered: Mar 2003
Location: Belgium
Posts: 8

Rep: Reputation: 0
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
Old 03-09-2003, 05:11 PM   #2
LQ Newbie
Registered: Mar 2003
Location: Belgium
Posts: 8

Original Poster
Rep: Reputation: 0
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.

Old 03-09-2003, 05:19 PM   #3
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 260Reputation: 260Reputation: 260
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.
Old 03-09-2003, 05:22 PM   #4
LQ Newbie
Registered: Mar 2003
Location: Belgium
Posts: 8

Original Poster
Rep: Reputation: 0
Thx for the quick reply, and I'll take a look at the man pages.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Why "bash-2.05b$" in Terminal instead of "username@localhost username" jayelitumbiolo Linux - General 9 10-04-2009 03:16 AM
[user@localhost user]$ md5sum 'filename Maxmore Linux - Newbie 1 06-07-2004 04:15 AM
where did my user@localhost go??? zarniwoop Linux - Networking 3 04-02-2004 12:08 PM
Cannot get past login! where do i go from user@localhost ?? Pol389 Linux - Newbie 2 12-05-2003 12:56 PM
bash-2.04#? what happened to root@localhost gummyworms Linux - General 2 07-12-2001 10:47 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:19 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration