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 [-fs | 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, --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 +
  17   31  SEE ALSO
  18   32         uname(1), attributes(5)
  19   33  
  20   34  
  21   35  
  22      -                              September 14, 1992                   HOSTNAME(1)
       36 +                                 May 11, 2016                      HOSTNAME(1)
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX