hostname(TC) 19 June 1992 hostname(TC) Name hostname - set or print name of current host system Syntax hostname [-s] [ nameofhost ] Description hostname prints the name of the current host. The super-user can set the hostname by giving an argument; this is usually done at boot time in the network initialization script. The -s option trims any domain informa- tion from the printed name. See also gethostname(SLIB), sethostname(SLIB), uname(C).