*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->OpenBSD man pages -> hostname (1)              



NAME    [Toc]    [Back]

     hostname - set or print name of current host system

SYNOPSIS    [Toc]    [Back]

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

DESCRIPTION    [Toc]    [Back]

     The hostname utility prints the name of  the  current  host.
The superuser
     can set the host name by supplying a /etc/myname file.  This
is used at
     system boot time by netstart(8) to initialize the  hostname.

     The options are as follows:

     -s       Trims  off  any domain information from the printed

SEE ALSO    [Toc]    [Back]

     domainname(1),  gethostname(3),  sethostname(3),  myname(5),

HISTORY    [Toc]    [Back]

     The hostname utility appeared in 4.2BSD.

OpenBSD      3.6                          April      28,     1995
[ Back ]
 Similar pages
Name OS Title
hostid IRIX set or print identifier of current host system
domainname OpenBSD set or print YP domain of current host system
hostid Linux print the numeric identifier for the current host
users Linux print the user names of users currently logged in to the current host
hostname HP-UX set or display name of current host system
hostname Tru64 Sets or displays the name of the current host system
traceroute IRIX print the route packets take to a network host
traceroute FreeBSD print the route packets take to network host
traceroute OpenBSD print the route packets take to network host
sethostname OpenBSD get/set name of current host
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service