LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Why "bash-2.05b$" in Terminal instead of "username@localhost username" (http://www.linuxquestions.org/questions/linux-general-1/why-bash-2-05b%24-in-terminal-instead-of-username%40localhost-username-114806/)

jayelitumbiolo 11-11-2003 10:16 AM

Why "bash-2.05b$" in Terminal instead of "username@localhost username"
 
For as long as I have been using RedHat9, I've gotten my user account shell prompt in the terminal window as default--username@localhost username. Now all of the sudden I get "bash-2.05b$" and I can't seem to get my user account prompt back. I get root by typing su or su - and root password. I tried re-entering user account info at shell prompt but I get "account already exists." I tried creating a new shell with user info but to no avail; maybe I did it wrong.

trickykid 11-11-2003 10:43 AM

Create or change this in your .bashrc file for PS1, etc.

jayelitumbiolo 11-12-2003 04:10 PM

Why the hell don't you people like my questions? Can't somebody give me a little more info then that. I found the .bashrc file but what do I do with it? I tried to run it like an install file. Can't somebody give me a little more help on this?

david_ross 11-12-2003 04:20 PM

Try running:
PS1="[\u@\H \W] "

To make it the same at each login them put that at the end of bashrc. The one I use is:
PS1="\[\033[0;31m\]\u - \d \t\n\w> \[\033[0m\]"

trickykid 11-12-2003 04:42 PM

Quote:

Originally posted by jayelitumbiolo
Why the hell don't you people like my questions? Can't somebody give me a little more info then that. I found the .bashrc file but what do I do with it? I tried to run it like an install file. Can't somebody give me a little more help on this?
Oh I'm sorry.. I tend to give pointers and not the full answer as it usually teaches others to learn to search and find the answers.

If you wanted me to hold your hand, next time say so. :rolleyes:

man bash actually has tons of information.. probably one of the longest manual pages I've seen and read.

Cheers.

jayelitumbiolo 11-12-2003 07:37 PM

TrickyKid,

I'm sorry too--but really sorry. I was irratated because my questions don't seem to get as many responses as most others. I don't know if they are too dumb or boring or what. I appreciate your approach of making me learn through trial and error. I was smart enough to know that you knew more, but didn't want to tell me. I'm really sorry if I offended you. Thank you for your help.

Jay

trickykid 11-12-2003 07:43 PM

Quote:

Originally posted by jayelitumbiolo
TrickyKid,

I'm sorry too--but really sorry. I was irratated because my questions don't seem to get as many responses as most others. I don't know if they are too dumb or boring or what. I appreciate your approach of making me learn through trial and error. I was smart enough to know that you knew more, but didn't want to tell me. I'm really sorry if I offended you. Thank you for your help.

Jay

No problem mate. There are tons of members that post daily, we actually average over 2k posts a day now.

When asking questions and somone gives a reply like I did, not going to much into detail, don't hesitate to ask for more details from them if you don't understand from the first answer in how to proceed.

Its all good though... :)

Cheers.

jayelitumbiolo 11-12-2003 07:48 PM

david_ross
Moderator----------------> Your command gets me my user account prompt, Thank you. I haven't tried the second command yet, but in honor of TrickyKid, I will figure out what to do with it without asking for more help.

Jay

trickykid 11-12-2003 07:54 PM

Quote:

Originally posted by jayelitumbiolo
david_ross
Moderator----------------> Your command gets me my user account prompt, Thank you. I haven't tried the second command yet, but in honor of TrickyKid, I will figure out what to do with it without asking for more help.

Jay

Actually check out this thread that was started because of this thread you started. We thought it would be fun to start a "what does you prompt look like thread" here: http://www.linuxquestions.org/questi...hreadid=115354

David explains there and shows what that second prompt will look like at the console/terminal window.. :)

Cheers.

liyunying 10-04-2009 03:16 AM

how to solve this problem
 
try this command:

$ exit bash

it was OK.
Good luck!


All times are GMT -5. The time now is 08:56 AM.