- set or print name of current host system
/usr/bin/hostname [name-of-host]
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 attributes(5) for descriptions of the following attributes:
|