HOSTNAME(1) User Commands HOSTNAME(1)
NAME
hostname - set or print name of current host system
SYNOPSIS
hostname [
-s] [
name-of-host]
DESCRIPTION
The
hostname command prints the name of the current host, as given
before the
login(1) prompt. The super-user can set the hostname by
giving
name-of-host.
OPTIONS
-s Prints only the part of the hostname preceding the first dot.
SEE ALSO
uname(1),
attributes(7)illumos May 12, 2016 illumos