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 [-fs | 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 
  18 OPTIONS
  19        For compatibility long arguments are also supported.
  20 
  21 
  22        -f, --fqdn, --long print out the fully qualified domain name.
  23 
  24        -s, --short strip domain information from hostname.
  25 
  26 
  27        The hostname command cannot be used to set the fqdn, long or short
  28        name.
  29 
  30 
  31 SEE ALSO
  32        uname(1), attributes(5)
  33 
  34 
  35 
  36                                  May 11, 2016                      HOSTNAME(1)