LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 05-11-2011, 05:29 PM   #1
shumbamajachani
LQ Newbie
 
Registered: May 2011
Posts: 9

Rep: Reputation: 0
The terminal displays bash-2.3-$ instead of Username@computename


My terminal is showing bash-2.3-$ instead of Username@computename. I am not a linux administrator so please try to answer it in plain language so that i full understand

Regards

Blessing
 
Old 05-11-2011, 06:12 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,130
Blog Entries: 2

Rep: Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825
Open a terminal and make sure that you are in the home-folder of your user. You can do that with a simple
Code:
cd
Now type in this code
Code:
echo "PS1='\u@\h:\w\$ '" >>.bashrc
and press the Enter key. This will add a new prompt to your Bash's config file. Now close the terminal. The next time you open it again you will have the usual prompt.

You can tweak the prompt to your liking, have a look at this.
 
Old 05-11-2011, 06:21 PM   #3
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,811
Blog Entries: 1

Rep: Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191
or add the following to .bashrc

Code:
. /etc/profile
 
Old 05-12-2011, 02:54 AM   #4
shumbamajachani
LQ Newbie
 
Registered: May 2011
Posts: 9

Original Poster
Rep: Reputation: 0
Hi

Thanxs it worked. I am glad

Blessing
 
Old 05-12-2011, 03:03 AM   #5
brownie_cookie
Member
 
Registered: Mar 2011
Location: Belgium
Distribution: CentOS release 5.5 (Final), Red Hat Enterprise Linux ES release 4 (Nahant Update 8)
Posts: 416
Blog Entries: 2

Rep: Reputation: 12
if you're happy with your solution, please mark it as solved ^^

 
  


Reply


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
'ps aux' displays users as uids, instead of username SlowCoder Linux - Newbie 18 10-25-2012 11:29 AM
[SOLVED] Bash prompt displays twice mattca Slackware 3 02-20-2010 12:59 AM
Why "bash-2.05b$" in Terminal instead of "username@localhost username" jayelitumbiolo Linux - General 9 10-04-2009 04:16 AM
username@something:~> in the terminal frode Linux - Newbie 1 08-25-2004 05:25 PM
Text mode terminal displays only 8 colors and not all 16 nocturne Linux - General 2 01-01-2003 12:51 AM


All times are GMT -5. The time now is 04:11 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration