LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 11-17-2009, 10:12 AM   #1
sunil.amperayani
LQ Newbie
 
Registered: Sep 2009
Posts: 9

Rep: Reputation: 0
root@localhost missing


I dont know what I did in linux .... but suddenly the prompt is like not like earlier i..e root@localhost it is giving as -bash-3.1

could you ppl help me to get back my old same prompt..!!!
 
Old 11-17-2009, 10:27 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,926

Rep: Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690
Quote:
Originally Posted by sunil.amperayani View Post
I dont know what I did in linux .... but suddenly the prompt is like not like earlier i..e root@localhost it is giving as -bash-3.1

could you ppl help me to get back my old same prompt..!!!
You changed something, either your /etc/profile, your $HOME/.profile, or your $HOME/.bashrc. Since you don't say what "Linux" you're running, or give any idea what you did, put this:
Code:
PS1='$(ppwd \l)\u@\h:\w> '
into one of those files.
 
  


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
Mail from root@localhost.localdomain thru relay=localhost.localdomain[216.24.138.1] rshartog Linux - Server 2 02-02-2009 11:35 PM
How to change root@127 to root@localhost? FirstBorn Linux - General 3 07-20-2008 01:15 PM
[root@localhost /]# maunishq General 15 01-19-2007 05:09 PM
localhost.localdomain missing anindyanuri Linux - Software 4 02-16-2005 10:54 AM
Changing root@localhost to root@domain.com Stingreen Linux - General 14 12-17-2002 07:21 PM


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