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. |
/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. |
Seems like the hostname is handed over by the gethostname( ) function.
|
All times are GMT -5. The time now is 03:51 PM. |