Linux and Unix hostname command
Quick links
About hostname
Syntax
Examples
Related commands
Unix main page
Set or print name of current host system. Additional information about the term hostname can be found on our hostname definition.
hostname [ name-of-host ]
| name-of-host | If proper privilege specifies the name of the host. |
hostname
Would display the name of the hostname for example: computerhope.
