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)