Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

uname(1)

gethostname(2)

sethostname(2)

uname(2)

hostname(1)

NAME

hostname − set or print name of current host system

SYNOPSIS

hostname [name_of_host]

DESCRIPTION

hostname prints the name of the current host, as given in the gethostname(2) system call. Users who have appropriate privileges can set the hostname by giving the argument name_of_host; this is usually done in the startup script /etc/rc.  The name_of_host argument is restriacted to UTSLEN−1 characters. UTSLEN is defined in <sys/utsname.h>. 

The system might be known by other names if networking products are supported.  See the node manager’s documentation supplied with your system for details. 

AUTHOR

hostname was developed by the University of California, Berkeley. 

SEE ALSO

uname(1), gethostname(2), sethostname(2), uname(2). 

Hewlett-Packard Company  —  HP-UX Release 8.05: June 1991

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026