UNAME(1) OpenBSD Reference Manual UNAME(1)NAMEuname - print operating system name
SYNOPSISuname [-amnprsv]
DESCRIPTION
The uname utility writes symbols representing one or more system
characteristics to the standard output.
The options are as follows:
-a Behave as though all of the options -mnrsv were specified.
-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 processor type in more detail.
-r Print the operating system release.
-s Print the operating system name.
-v Print the operating system version.
If no options are specified, uname prints the operating system name as if
the -s option had been specified.
EXIT STATUS
The uname utility exits 0 on success, and >0 if an error occurs.
SEE ALSOhostname(1), machine(1), uname(3)STANDARDS
The uname utility is compliant with the IEEE Std 1003.1-2008 (``POSIX'')
specification.
The flag [-p] is an extension to that specification.
HISTORY
The uname command appeared in 4.4BSD.
OpenBSD 4.9 September 3, 2010 OpenBSD 4.9