Print or set system name

Syntax
      hostname [name]

With no arguments, `hostname’ prints the name of the current host system. With one argument, it sets the current host name to the specified string. You must have appropriate privileges to set the host name.

Related linux commands:

env – Display, set, or remove environment variables
groups – Print group names a user is in
id – Print user and group id’s
logname – Print current login name
tty – Print filename of terminal on stdin
uname – Print system information
users – Print login names of users currently logged in
who – Print who is currently logged in
whoami – Print the current user id and name (`id -un’)
Equivalent Windows command: HOSTNAME

Te ayudó?