10.3.1 Hostname
The kernel maintains a system hostname. The initscript
/etc/init.d/hostname.sh
sets the system hostname at boot time
(using the hostname
command) to the name stored in
/etc/hostname
. This file should contain only the
system hostname, not a fully qualified domain name.
To print out the current hostname run hostname
without an
argument.