LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-11-2003, 10:16 AM   #1
jayelitumbiolo
LQ Newbie
 
Registered: Oct 2003
Location: Griffith, IN
Distribution: RH 9
Posts: 15

Rep: Reputation: 0
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.
 
Old 11-11-2003, 10:43 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Create or change this in your .bashrc file for PS1, etc.
 
Old 11-12-2003, 04:10 PM   #3
jayelitumbiolo
LQ Newbie
 
Registered: Oct 2003
Location: Griffith, IN
Distribution: RH 9
Posts: 15

Original Poster
Rep: Reputation: 0
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?
 
Old 11-12-2003, 04:20 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
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\]"
 
Old 11-12-2003, 04:42 PM   #5
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
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.

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

Cheers.
 
Old 11-12-2003, 07:37 PM   #6
jayelitumbiolo
LQ Newbie
 
Registered: Oct 2003
Location: Griffith, IN
Distribution: RH 9
Posts: 15

Original Poster
Rep: Reputation: 0
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
 
Old 11-12-2003, 07:43 PM   #7
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
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.
 
Old 11-12-2003, 07:48 PM   #8
jayelitumbiolo
LQ Newbie
 
Registered: Oct 2003
Location: Griffith, IN
Distribution: RH 9
Posts: 15

Original Poster
Rep: Reputation: 0
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
 
Old 11-12-2003, 07:54 PM   #9
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
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.
 
Old 10-04-2009, 03:16 AM   #10
liyunying
LQ Newbie
 
Registered: Oct 2009
Posts: 1

Rep: Reputation: 0
how to solve this problem

try this command:

$ exit bash

it was OK.
Good luck!
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
bash script: using "select" to show multi-word options? (like "option 1"/"o zidane_tribal Programming 7 12-19-2015 01:03 AM
using symlinks for /home/"username" and /var/www/html hamza11050 Linux - Networking 10 08-05-2005 10:36 PM
what's the difference between running "id" and "id <username>"? hesher Linux - General 1 04-14-2005 07:04 PM
'Can a user be created with username as "/dev/null" in an application?' sheetal_govekar Linux - Software 1 08-25-2004 11:31 AM
bash-2.05b# Xlib: extension "XFree86-DRI" missing on display ":0.0". citrus Linux - General 8 02-22-2004 10:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

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