osf1 man page for hostname

Query: hostname

OS: osf1

Section: 1

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

hostname(1)						      General Commands Manual						       hostname(1)

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
To display the short form of the local host name, enter: $ hostname -s host1 To change the name of the local host, enter: # hostname west
FILES
Defines the Interface Program name and address of the local host.
SEE ALSO
Commands: hostid(1) Functions: gethostname(2), sethostname(2) hostname(1)
Related Man Pages
check-hostname(1m) - opensolaris
hostname(5) - centos
check-hostname(1m) - sunos
gethostname(2) - hpux
arp(8c) - ultrix
Similar Topics in the Unix Linux Community
gethostbyname_r returns NULL when hostname has dash
How to show hostname infor after login
FQDN into domain name and hostname
How to extract hostname from file using awk?
AIX Syslog where the hostname sit