Print this page
3758 RFE: Would like "hostname -s"
3430 Support "hostname --fqdn"

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man1/hostname.1.man.txt
          +++ new/usr/src/man/man1/hostname.1.man.txt
   1    1  HOSTNAME(1)                      User Commands                     HOSTNAME(1)
   2    2  
   3    3  
   4    4  
   5    5  NAME
   6    6         hostname - set or print name of current host system
   7    7  
   8    8  SYNOPSIS
   9      -       /usr/bin/hostname [name-of-host]
        9 +       /usr/bin/hostname [-fls | name-of-host]
  10   10  
  11   11  
  12   12  DESCRIPTION
  13   13         The hostname command prints the name of the current host, as given
  14   14         before the login prompt. The super-user can set the hostname by giving
  15   15         an argument.
  16   16  
       17 +
       18 +OPTIONS
       19 +       For compatibility long arguments are also supported.
       20 +
       21 +
       22 +       -f, --fqdn print out the FQDN (fully qualified domain name).
       23 +
       24 +       -l, --long alias for -f, --fqdn.
       25 +
       26 +       -s, --short strip domain information from hostname.
       27 +
       28 +
       29 +       The hostname command cannot be used to set the fqdn, long or short
       30 +       name.
       31 +
       32 +
  17   33  SEE ALSO
  18   34         uname(1), attributes(5)
  19   35  
  20   36  
  21   37  
  22      -                              September 14, 1992                   HOSTNAME(1)
       38 +                                 May 11, 2016                      HOSTNAME(1)
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX