HOSTNAME(1) HOSTNAME(1)
hostname - set or print name of current host system
hostname [-s] [nameofhost]
Hostname prints the name of the current host. The -s option trims any
domain information from the printed name. The super-user can set the
hostname by supplying an argument; this is usually done in the system
setup initialization script /etc/init.d/sysetup using the contents of
/etc/sys_id. This setting persists only until the next reboot when the
startup procedure will once again initialize the hostname with the
contents of the above file. To permanently change this value change the
contents of the above file then run hostname as a privileged user.
gethostname(2), sethostname(2)
PPPPaaaaggggeeee 1111 [ Back ]
|