hostname

Print or set system name

SYNTAX
      hostname [NAME]

DESCRIPTION
     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 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 NT commands:

SET
- Display the Windows NT %COMPUTERNAME%



Back to the Top

Simon Sheppard
SS64.com