uname(1) DG/UX 5.4R3.00 uname(1)
NAME
uname - print name of current system
SYNOPSIS
uname [ -amnprsv ]
DESCRIPTION
Uname prints the current system name of the DG/UX system on the
standard output file. It is mainly useful to determine which system
you are using. The options print selected information returned by
uname(2) and sysinfo(2):
-a Print all information.
-m Print the machine hardware name.
-n Print the nodename (the nodename may be a name that the system
is known by to a communications network).
-p Print the current host's processor type.
-r Print the operating system release.
-s Print the name of the operating system. This is the default.
-v Print the operating system version.
EXAMPLES
$ uname
dgux
$
Prints the system name on the standard output.
$ uname -a
dgux sys08 5.4 generic AViiON mc88100
$
Prints the system name, the nodename, the operating system release,
the operating system version, the machine hardware name, and the
processor type on the standard output.
$ PS1=`uname`; export PS1
dgux
Sets the primary shell prompt to the name of the system and makes the
new value of the variable available to all the shells that you
initiate. Note that the uname command is in backquotes.
SEE ALSO
hostname(1C) in TCP/IP.
uname(2).
Licensed material--property of copyright holder(s) 1
uname(1) DG/UX 5.4R3.00 uname(1)
NOTES
The command hostname(1C) and the system call sethostname(2) modify
the system's nodename, and thus change the value returned by uname
-n.
Licensed material--property of copyright holder(s) 2