*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: hostname | Section: 1 | Source: FreeBSD | File: hostname.1.gz
HOSTNAME(1) FreeBSD General Commands Manual HOSTNAME(1) NAME hostname - set or print name of current host system SYNOPSIS hostname [-f] [-s | -d] [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; this is usually done in the initialization script /etc/rc.d/hostname, normally run at boot time. This script uses the hostname variable in /etc/rc.conf. Options: -f Include domain information in the printed name. This is the default behavior. -s Trim off any domain information from the printed name. -d Only print domain information. EXAMPLES Set the host name of the machine and check the result: $ hostname beastie.localdomain.org $ hostname beastie.localdomain.org Do not show domain information: $ hostname -s beastie Show only domain information: $ hostname -d localdomain.org SEE ALSO gethostname(3), rc.conf(5) HISTORY The hostname command appeared in 4.2BSD. FreeBSD 14.1-RELEASE-p8 October 5, 2020 FreeBSD 14.1-RELEASE-p8

Navigation Options