MPE/iX Shell and Utilities Reference Manual, Vol 2
uname(1) MPE/iX Shell and Utilities uname(1)
NAME
uname — display system name information
SYNOPSIS
uname [–amnrsv]
DESCRIPTION
The uname command lets shell scripts and other programs determine configuration informa-
tion about the machine upon which the shell is running.
Options
uname accepts the following options:
–a displays all fields (equivalent to –mnrsv).
–m displays the
CPU or machine type.
–n displays the node name of this particular machine. The node name usually differenti-
ates machines running at one location.
–r displays the release (minor version) number of the operating system.
–s displays the name of the operating system. This is the default output, when no op-
tions are given.
–v displays the version (major version) number of the operating system.
uname displays the selected information in the following order:
<system name> <nodename> <release> <version> <machine>
EXAMPLES
This shell command changes the prompt to identify the computer location.
export PS1="`uname -n`$ "
DIAGNOSTICS
Possible exit status values are:
0 Successful completion.
1 Failure due to an inability to find the desired information.
2 Failure due to an invalid command line option.
Commands and Utilities 1-627