Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 12-07-2002, 08:54 PM   #1
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


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, 09:32 PM   #2
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, 09:47 PM   #3
Registered: May 2002
Posts: 113

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


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 07:13 AM
Fedora command prompt problem ylkien Linux - Newbie 2 07-21-2004 08:53 AM
problem using ln with command line lex Linux - Newbie 4 06-03-2004 08:43 AM
Problem getting to command line... ChaosJunkee Mandriva 5 09-14-2003 06:26 PM
command line problem garth_s Linux - General 1 06-26-2003 03:12 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:17 AM.

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