hostname(1C) DG/UX R4.11MU05 hostname(1C)
NAME
hostname - set or print name of current host system
SYNOPSIS
hostname [ nameofhost ]
DESCRIPTION
The hostname command (without an argument) prints the name of the
current host. A user with appropriate privilege (See NOTES, below)
can set the nameofhost by specifying an argument. When the
nameofhost is specified the command also sets the nodename for the
system. The nodename can also be displayed with the uname command
and is typically used with communication protocols other than TCP/IP,
such as, uucp. The parameter used at boot time is defined in
/etc/tcpip.params
and is used in
/usr/sbin/init.d/rc.tcpipport
SEE ALSO
uname(1), gethostname(2), sethostname(2), uname(2),
appropriateprivilege(5).
NOTES
On a generic DG/UX system, appropriate privilege is granted by having
an effective UID of 0 (root). See the appropriateprivilege(5) man
page for more information.
On a system with DG/UX information security, appropriate privilege is
granted by having one or more specific capabilities enabled in the
effective capability set of the user. See the capdefaults(5) man
page for the default capabilities for this command.
Licensed material--property of copyright holder(s)