unameutility prints information about the current system on the standard output. When options are specified, symbols representing one or more system characteristics will be written to the standard output. If no options are specified,
unameprints the current operating system's name. The options print selected information returned by uname(2), sysinfo(2), or both.
-pinstead. See NOTES section below.
SYS_NMLNis an implementation specific value defined in
<sys/utsname.h>. Only the super-user is allowed this capability. This change does not persist across reboots of the system. See nodename(4) for details of how to change a host's name permanently.
unameutility exits 0 on success, and >0 if an error occurs.
$ uname -sr
...prints the operating system name and release level, separated by one SPACE character.
To determine the operating system name and release level, use
-sr. To determine only
the operating system release level, use
-r. Notice that operating system release levels are
not guaranteed to be in x.y format (such as 5.3, 5.4, 5.5,
and so forth); but could be in the x.y.z format (such as
In SunOS 4.x releases, the
arch(1) command was often used to obtain
information similar to that obtained by using the
uname command. The
arch(1) command output
sun4’ was often incorrectly
interpreted to signify a SunOS SPARC system. If hardware platform
information is desired, use
-m commands return
equivalent values; however, the use of either of these commands by third
party programs is discouraged, as is the use of the
arch command in general. To determine the machine's
Instruction Set Architecture (ISA or processor type), use
uname with the
|February 9, 2018||OmniOS|