Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ hostname(1) — Digital UNIX 3.2c

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

hostid(1)

gethostname(2)

sethostname(2)

hostname(1)  —  Commands

NAME

hostname − Sets or displays the name of the current host system

SYNOPSIS

hostname [−s] [new_name]

DESCRIPTION

The hostname command sets or displays the name of the current host system.  If you use the −s option, the short form of the host name is displayed.  Only the superuser can set the hostname. 

EXAMPLES

     1.To display the short form of the local host name, enter:

$ hostname -s

host1

     2.To change the name of the local host, enter:

# hostname west

FILES

/etc/hostsDefines the Interface Program name and address of the local host. 

RELATED INFORMATION

Commands: hostid(1). 

Functions:  gethostname(2), sethostname(2). 

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