LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   problem with command line prompt ??? (https://www.linuxquestions.org/questions/linux-general-1/problem-with-command-line-prompt-37613/)

robeb 12-07-2002 07:54 PM

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.

sharper 12-07-2002 08:32 PM

/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.

robeb 12-07-2002 08:47 PM

Seems like the hostname is handed over by the gethostname( ) function.


All times are GMT -5. The time now is 03:51 PM.