Print this page
Placeholder
   1 HOSTNAME(1)                      User Commands                     HOSTNAME(1)
   2 
   3 
   4 
   5 NAME
   6        hostname - set or print name of current host system
   7 
   8 SYNOPSIS
   9        /usr/bin/hostname [name-of-host]
  10 
  11 
  12 DESCRIPTION
  13        The hostname command prints the name of the current host, as given
  14        before the login prompt. The super-user can set the hostname by giving
  15        an argument.





  16 
  17 SEE ALSO
  18        uname(1), attributes(5)
  19 
  20 
  21 
  22                               September 14, 1992                   HOSTNAME(1)
   1 HOSTNAME(1)                      User Commands                     HOSTNAME(1)
   2 
   3 
   4 
   5 NAME
   6        hostname - set or print name of current host system
   7 
   8 SYNOPSIS
   9        /usr/bin/hostname [-d | -f] [domain | hostname]
  10 
  11 
  12 DESCRIPTION
  13        With no arguments th hostname command prints the name of the current
  14        host, as given before the login prompt.  If -d is passed the hostname
  15        command will instead print out the name of default domain, and if -f is
  16        passed the hostname will be fully-qualified.
  17 
  18        The super-user can set the hostname (or domain name if -d is passed) by
  19        passing the new value as an additional argument.  The FQDN (fully
  20        qualified domain name) cannot be set using the hostname command.
  21 
  22 SEE ALSO
  23        uname(1), attributes(5)
  24 
  25 
  26 
  27                                  May 10, 2016                      HOSTNAME(1)