manpagez: man pages & more
info coreutils
Home | html | info | man
[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

21.4 hostname: Print or set system name

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. You must have appropriate privileges to set the host name. Synopsis:

 
hostname [name]

The only options are ‘--help’ and ‘--version’. See section Common options.

An exit status of zero indicates success, and a nonzero value indicates failure.


© manpagez.com 2000-2017
Individual documents may contain additional copyright information.