HOSTNAME(1)                                                        HOSTNAME(1)


NAME
     hostname - set or print name of current host system

SYNOPSIS
     hostname [-s] [nameofhost]

DESCRIPTION
     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.

SEE ALSO
     gethostname(2), sethostname(2)


                                                                        Page 1