Latest LQ Deal: Latest LQ Deals
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 11-05-2008, 12:59 AM   #1
LQ Newbie
Registered: Jul 2008
Posts: 7

Rep: Reputation: 0
console prompt problem( bash-3.1#)


I have a problem in my console prompt. It shows
"bash -3.1#", i need it to back like "[root@localhost]#".
Can any one help me plzzz.

Old 11-05-2008, 01:29 AM   #2
Senior Member
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,039

Rep: Reputation: 97
export PS1='[\u@\h]#'

To make it permanent, you will need to edit your ~/.bashrc script

Last edited by Disillusionist; 11-05-2008 at 01:34 AM.


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
Problem setting new prompt on bash elbarto Linux - Newbie 5 01-17-2007 06:01 AM
bash prompt problem bjharker Linux - Newbie 5 07-18-2006 02:50 PM
bash prompt problem akudewan Slackware 7 03-09-2005 07:21 AM
bash prompt problem jackpal Linux - Software 6 02-04-2004 11:37 AM
bash problem: no prompt xyfan Linux - General 6 11-25-2003 11:15 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:38 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration