uname(1) UNIX System V(Essential Utilities) uname(1)
NAME
uname - print name of current UNIX system
SYNOPSIS
uname [ -amnprsv ]
uname [ -S nodename ]
DESCRIPTION
uname prints the current system name of the UNIX system to standard
output. It is mainly useful to determine which system one is using. The
options cause selected information returned by uname(2) and/or sysinfo(2)
to be printed:
-a Print all information. Output will in the following order:
systemname nodename release version machine hostprocessor
-m Print the machine hardware name (machine).
-n Print the nodename (the nodename is the name by which the system is
known to a communications network).
-p Print the current host's processor type (hostprocessor).
-r Print the operating system release (release).
-s Print the name of the operating system (systemname) (for example,
UNIX System V). This is the default.
-v Print the operating system version (version).
-S Change nodename (see -n option above). nodename is restricted to
SYSNMLN characters. SYSNMLN is an implementation specific value
defined in sys/utsname.h. Only a privileged user is allowed this
capability.
For computers based on Intel microprocessors, using the -S option
also changes the name of the operating system (systemname).
NOTES
The output of uname is affected by the environment variable SCOMPAT.
SCOMPAT is part of the application compatibility features provided to
support UNIX applications other than UNIX System V Release 4.
SEE ALSO
sysinfo(2), uname(2) in the Programmer's Reference Manual
scompat(1) in the Migration and Compatibility Guide
setuname(1M) in the System Administrator's Reference Manual
10/89 Page 1