setting computer name

Bevan C. Bennett bevan at fulcrummicro.com
Wed Feb 25 01:10:59 UTC 2004


Nadeem Bitar wrote:
> echo "<hostname>" > /proc/sys/kernel/hostname

Doesn't that have the same effect as "/bin/hostname <hostname>"?
(Hostname will be set, but only until the next reboot.)

Setting it in /etc/sysconfig/network will cause the standard startup 
scripts to set it on bootup at the appropriate time.





More information about the users mailing list