.\" SPDX-License-Identifier: 0BSD
.Dt UNAME 1
.Nd print system information
.Op Fl asnrvmpio
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
.Xr uname 3 ,
and is beholden to drawbacks thereof.
.No If called as Nm uname , No the default is Fl s .
.No If called as Nm arch , No behaves like Nm uname Fl m .
.Bl -tag -compact -width "-i, --hardware-platform"
.It Fl a , -all
.No Print all fields , Em but No only print Fl pi No if not Qq unknown .
.It Fl s , -kernel-name
Name of the kernel
.Pq Fa sysname .
.It Fl n , -nodename
Name of system on some communcation network, which usually means the configured hostname
.Pq Fa nodename .
.It Fl r , -kernel-release
Version number of the kernel
.Pq Fa release .
.It Fl v , -kernel-version
Human-readable version of the kernel
.Pq Fa version .
.It Fl m , -machine
Machine class the kernel is built for
.Pq Fa machine .
.It Fl p , -processor
Machine class the kernel is running on
this is non-portable: it corresponds to the
.Va hw.machine_arch No sysctl on Nx , Fx , and Dx , the
.Dv MACHINE_ARCH No macro on Ox , and
.It Fl i , -hardware-platform
.It Fl o , -operating-system
.No Same as Fl s .
.Sh SEE ALSO
.Xr uname 3 ,
.Xr sysctl 7
.St -p1003.2-92 .
.No The Bx No calls Nm arch Nm machine .
.Nm arch No is also available on Solaris, but is deprecated and does something different .
.Fl pio No are extensions :
.Fl p No is available on the Bx ,
.Fl io No are only available on the GNU system .
.No On the Bx , Fl a No is strictly equivalent to Fl snrvm .
.No Under Linux, on the GNU system , Fl o No is Qq GNU/Linux .
.Nm No from the GNU system handles Fl a No together with Fl io No differently .