HOSTNAME(1) HOSTNAME(1) NAME hostname - set or print name of current host system SYNOPSIS hostname [ nameofhost ] DESCRIPTION The _h_o_s_t_n_a_m_e command prints the name of the current host, as given before the ‘‘login’’ prompt. The super-user can set the hostname by giving an argument; this is usually done in the startup script /etc/rc.local. SEE ALSO gethostname(2), sethostname(2) 4.2 Berkeley Distribution April 29, 1985 HOSTNAME(1)