1.\" Copyright (c) 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" %sccs.include.redist.roff% 5.\" 6.\" @(#)uname.1 8.2 (Berkeley) 01/04/94 7.\" 8.Dd "" 9.Dt UNAME 1 10.Os 11.Sh NAME 12.Nm uname 13.Nd display information about the system 14.Sh SYNOPSIS 15.Nm uname 16.Op Fl amnrsv 17.Sh DESCRIPTION 18The 19.Nm uname 20command writes the name of the operating system to the standard output. 21When options are specified, strings representing one or more system 22characteristics are written to the standard output. 23.Pp 24The options are as follows: 25.Bl -tag -width Ds 26.It Fl a 27Behave as though the options 28.Fl m , 29.Fl n , 30.Fl r , 31.Fl s , 32and 33.Fl v 34were specified. 35.It Fl m 36Write the type of the current hardware platform to standard output. 37.It Fl n 38Write the name of the system to standard output. 39.It Fl r 40Write the current release level of the operating system 41to standard output. 42.It Fl s 43Write the type of the operating system to standard output. 44.It Fl v 45Write the version level of this release of the operating system 46to standard output. 47.El 48.Pp 49If the 50.Fl a 51flag is specified, or multiple flags are specified, all 52output is written on a single line, separated by spaces. 53.Pp 54The 55.Nm uname 56utility exits 0 on success, and >0 if an error occurs. 57.Sh SEE ALSO 58.Xr sysctl 8 , 59.Xr sysctl 3 , 60.Xr uname 3 61.Sh HISTORY 62The 63.Nm uname 64command appeared in 4.4BSD. 65.Sh STANDARDS 66The 67.Nm ls 68function is expected to conform to the 69.St -p1003.2 70specification. 71