LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   hostname problem (https://www.linuxquestions.org/questions/linux-networking-3/hostname-problem-241785/)

suresheva31 10-12-2004 01:09 PM

hostname problem
 
hey guys,
I got quick question regaring my linux termianl window

i get the following host name: srahn-lt instead of localhost. Does anyone knows why this doing this or how to change that back localhost.
please some one

[suresh@srahn-lt suresh]$

Suresh

avarus 10-12-2004 01:27 PM

err...

Type:

PS1='[\u@localhost \w]$'

Or read the manpage for hostname if you actually need to correct your hostname.

emailssent 10-12-2004 11:40 PM

try this,

#vi /etc/sysconfig/network

HOSTNAME=<type here your hostname>


and reboot ur system !


-jack


All times are GMT -5. The time now is 10:41 AM.