.\" SPDX-License-Identifier: 0BSD
.TH "UNAME" "1" "June 8, 2021" "voreutils ed16216" "General Commands Manual"
.if n .ad l
\- print system information
Writes some system information to the standard output stream in the order listed below, separated by spaces.
Except where otherwise specified, information is obtained using
and is beholden to drawbacks thereof.
If called as \fBuname\fR, the default is \fB\-s\fR.
If called as \fBarch\fR, behaves like \fBuname\fR \fB\-m\fR.
Print all fields, \fIbut\fR only print \fB\-pi\fR if not "unknown".
Name of the kernel
Name of system on some communcation network, which usually means the configured hostname
Version number of the kernel
Human-readable version of the kernel
Machine class the kernel is built for
Machine class the kernel is running on
(this is non-portable: it corresponds to the
\fIhw.machine_arch\fR sysctl on\ NetBSD,\ FreeBSD, and\ DragonFly, the
\fRMACHINE_ARCH\fR macro on\ OpenBSD, and
Same as \fB\-s\fR.
.SH "SEE ALSO"
IEEE Std 1003.2-1992 (\(lqPOSIX.2\(rq).
The\ BSD calls \fBarch\fR \fBmachine\fR.
\fBarch\fR is also available on Solaris, but is deprecated and does something different.
\fB\-pio\fR are extensions:
\fB\-p\fR is available on the\ BSD,
\fB\-io\fR are only available on the GNU system.
On the\ BSD, \fB\-a\fR is strictly equivalent to \fB\-snrvm\fR.
Under Linux, on the GNU system, \fB\-o\fR is "GNU/Linux".
\fBuname\fR from the GNU system handles \fB\-a\fR together with \fB\-io\fR differently.