hostname(1) — USER COMMANDS
NAME
hostname − set or print name of current host system
SYNOPSIS
/usr/ucb/hostname [ name-of-host ]
DESCRIPTION
The hostname 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.
SEE ALSO
— BSD Compatibility Package