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 12-07-2002, 07:54 PM   #1
robeb
Member
 
Registered: May 2002
Posts: 113

Rep: Reputation: 15
problem with command line prompt ???


I'm not sure what this is called so I apologize for the vauge thread title, but when I login to my box I usually get a prompt with the user name and then the name of the box...

[user@mybox user]$

but now I get something like this

[user@x1-6-00-04-5a-5b-1e-59]$

I'm not sure what I did to cause this but I'd like to get it back to the way it was. I guess I need to understand how linux resolves this so if anyone can give a push in the right direction I'll to work on fixing the problem.
 
Old 12-07-2002, 08:32 PM   #2
sharper
Member
 
Registered: Aug 2002
Location: MN USA
Distribution: slakware 9.0
Posts: 121

Rep: Reputation: 15
/etc/profile has a global profile that the user can modify in their .bashrc or .profile file in their home directory. For what tiy had I believe the line is.

PS1="\u@\h:\w\$ "

But look /etc/profile over before making any changes to it.
 
Old 12-07-2002, 08:47 PM   #3
robeb
Member
 
Registered: May 2002
Posts: 113

Original Poster
Rep: Reputation: 15
Seems like the hostname is handed over by the gethostname( ) function.
 
  


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
Bringing Up Command Line\prompt hondagetter Linux - General 3 09-04-2005 06:13 AM
Fedora command prompt problem ylkien Linux - Newbie 2 07-21-2004 07:53 AM
problem using ln with command line lex Linux - Newbie 4 06-03-2004 07:43 AM
Problem getting to command line... ChaosJunkee Mandriva 5 09-14-2003 05:26 PM
command line problem garth_s Linux - General 1 06-26-2003 02:12 PM


All times are GMT -5. The time now is 03:52 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration