How does one permanently change hostname ?

Quy NGUYEN DAI nguyendaiquy at gmail.com
Sun Nov 21 16:18:42 UTC 2004


On Sun, 21 Nov 2004 09:11:49 -0700, Kim Lux <lux at diesel-research.com> wrote:
> I'm doing a lot of sshing these days and it helps if the prompt line
> reflects the computer I am working on rather than just saying
> "localhost".
> 
> How does one permanently display the hostname in the command prompt,
> aside from changing the command prompt itself.
> 
> I've tried using "hostname <newname>" and it works until the machine is
> rebooted, but then it comes back with "localhost".  I can't
> find /etc/hostname either.
> 
> How and where is hostname set and how does one alter it ?
> 

$ cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=foo.bar.com
GATEWAY=192.168.100.1

-- 
http://vnoss.org/forum/




More information about the fedora-list mailing list