LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 08-16-2013, 09:28 AM   #1
boby.kumar
Member
 
Registered: Mar 2013
Posts: 94

Rep: Reputation: Disabled
login prompt changed


Hi Friends
Login prompt changed as logged by user in linux machine.

login as: abc123
abc123@10.20.30.X's password:
Last login: Wed Aug 14 14:30:15 2013 from 10.20.30.y
-bash-4.1$
-bash-4.1$

It was earlier as:[abc123@hostname]#

now it is -bash-4.1$

Any idea why its happened and what is root cause of this issue ?
 
Old 08-16-2013, 09:55 AM   #2
climaxnix
LQ Newbie
 
Registered: Nov 2004
Distribution: Debian GNU/Linux
Posts: 12

Rep: Reputation: 2
hi,

please take a look at:

http://tldp.org/HOWTO/Bash-Prompt-HOWTO/x157.html

and the next two pages in that document.

So may be the profile had been modified.
 
Old 08-16-2013, 09:57 AM   #3
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
It's user's default login prompt. Perhaps you've (or user) changed some shell initialization file (.bashrc or .profile etc) where earlier prompt was set. Well, you can set it again as:
Add following line at the end of user's .bashrc or .profile file:
Code:
export PS1="[\u\@\H\]# "
OR
export PS1="[$(whoami)\@$(hostname)]\# "
And then source the file:
Code:
~$ source .bashrc 
OR
~$ source .profile
 
Old 08-16-2013, 10:33 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,685

Rep: Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972
Quote:
Originally Posted by boby.kumar View Post
Hi Friends
Login prompt changed as logged by user in linux machine.

login as: abc123
abc123@10.20.30.X's password:
Last login: Wed Aug 14 14:30:15 2013 from 10.20.30.y
-bash-4.1$
-bash-4.1$

It was earlier as:[abc123@hostname]#

now it is -bash-4.1$

Any idea why its happened and what is root cause of this issue ?
Yes, and it was answered in your other thread, too.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Shell prompt changed to > nicnicman Linux - Newbie 9 02-07-2013 04:12 PM
Command line prompt has changed une Linux - Newbie 3 09-19-2006 10:51 PM
Root Prompt Changed baabakb Linux - Newbie 6 09-09-2006 03:55 AM
Hostname was changed on the command prompt pretty.tulip Linux - Newbie 1 04-02-2006 11:21 PM
user comand prompt changed - don't know why sadmac Linux - Newbie 2 04-24-2003 12:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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