manpages.info - online man pages   

Mac OS X / Darwin man pages : hostname (1)
hostname (1)

Table of Contents

Name

hostname - set or print name of current host system

Synopsis

hostname [-s] [name-of-host]

Description

The hostname utility prints the name of the current host. The super-user can set the hostname by supplying an argument.

Options:

-s
Trim off any domain information from the printed name.

See Also

gethostname(3)

History

The hostname command appeared in 4.2BSD.


Table of Contents