-
- hostname - print name of the current host
-
- hostname [ options ]
-
- hostname writes the name of the current host on standard output. Use the Network Control Panel Applet to set
the hostname.
-
- -s
- Trims any domain information from the name.
-
- 0
- Success.
- >0
- An error occurred.
-
- gethostname(2)
-
- author
- Glenn Fowler <gsf@research.att.com
>
- author
- David Korn <dgk@research.att.com>
- author
- Phong Vo <kpv@research.att.com>
- copyright
- Copyright © 1986-2010 AT&T Intellectual Property
- license
- http://www.opensource.org/licenses/cpl1.0.txt