HOSTNAME(1)

NAME
hostname - set or print the name of the current host system

SYNOPSIS
hostname [name]
hostname {--help,--version}

DESCRIPTION
This documentation is no longer being maintained and may be inaccurate or incomplete. The Texinfo documentation is now the authoritative source.

This manual page documents the GNU version of hostname. With no arguments, hostname prints the name of the current host system. With one argument, it sets the current host name to the specified string. Usually, only a privileged user may set the host name.

  OPTIONS

--help
    Print a usage message on standard output and exit successfully.

--version
    Print version information on standard output then exit successfully.