HOSTNAME

Section: User Commands (1)
Index Return to Main Contents

BSD mandoc
BSD 4.2  

NAME

hostname - set or print name of current host system  

SYNOPSIS

[-s ] [name-of-host ]  

DESCRIPTION

prints the name of the current host. The super-user can set the host name by supplying an argument; this is usually done in the network initialization script /etc/netstart normally run at boot time.

Options:

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

 

SEE ALSO

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

HISTORY

The utility appeared in BSD 4.2


 

Index

NAME
SYNOPSIS
DESCRIPTION
SEE ALSO
HISTORY

This document was created by man2html, using the manual pages.
Time: 04:29:53 GMT, April 24, 2025