LinuxQuestions.org
Visit Jeremy's Blog.
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-13-2013, 06:35 AM   #1
Aneesh.T .S
LQ Newbie
 
Registered: Oct 2011
Posts: 8

Rep: Reputation: 0
Smile root@localhost ~]# is not showing on my centos 6.4 terminal.!!!!!


Dear friends,

I am facing one issue on my Centos6.4 linux machin.

When ever I am opening my terminal it not showing
root@localhost ~]# it showing bash-4.1 only "bash-4.1#"

How can I retrieve this issue on my centos Machine.

Kindly find the attached image.Then you can clearly understand what issues am facing.



with regards
Aneesh T S
Attached Thumbnails
Click image for larger version

Name:	root not showing.jpg
Views:	137
Size:	38.3 KB
ID:	13947  

Last edited by XavierP; 11-13-2013 at 06:49 AM. Reason: Moved to Linux-General
 
Old 11-13-2013, 08:39 AM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
So?

Just edit PS1 if you want it to look different.
Code:
user@comp:~> echo $PS1
$(ppwd \l)\u@\h:\w>
user@comp:~> su -
Password: 
comp:~ # echo $PS1
\[\]\h:\w # \[\]
comp:~ # export PS1="\u@\h:\w> "
root@comp:~> export PS1="\u@\h \w]# "
root@comp ~]# export PS1="\u is a little tea cup # "
root is a little tea cup #
And so on. Add the command to ~/.bashrc to make the change permanent.

Last edited by suicidaleggroll; 11-13-2013 at 08:46 AM.
 
3 members found this post helpful.
Old 11-14-2013, 01:26 AM   #3
kooru
Senior Member
 
Registered: Sep 2012
Posts: 1,385

Rep: Reputation: 275Reputation: 275Reputation: 275
Just to add a guide if it can be useful:

http://www.cyberciti.biz/tips/howto-...up-prompt.html
http://www.thegeekstuff.com/2008/09/...ngelina-jolie/
 
Old 11-15-2013, 12:51 AM   #4
Aneesh.T .S
LQ Newbie
 
Registered: Oct 2011
Posts: 8

Original Poster
Rep: Reputation: 0
Smile It is working 100%....

Hi suicidaleggroll,

it is very helpfull and it is working fine.

now everything is working fine.

thank you very much and thanks for your valuable time for helping me.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Gnome terminal 2.1.0, centos 5 - how to 'find' text listed on terminal screen linuxquestions_forum_use Linux - Newbie 2 12-21-2010 08:35 PM
Mail from root@localhost.localdomain thru relay=localhost.localdomain[216.24.138.1] rshartog Linux - Server 2 02-02-2009 10:35 PM
How to change root@127 to root@localhost? FirstBorn Linux - General 3 07-20-2008 12:15 PM
Terminal showing whole path mattd7591 Linux - General 10 01-15-2007 09:37 AM
Changing root@localhost to root@domain.com Stingreen Linux - General 14 12-17-2002 06:21 PM

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

All times are GMT -5. The time now is 07:51 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