uname(1) DG/UX R4.11 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: the system name, the nodename, the
operating system release, the operating system version, the
machine hardware name, and the processor type.
-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 operating system name.
-v Print the operating system version.
EXAMPLES
$ uname
dgux
$
Prints the system name to 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), setuname(1M).
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)