| 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.1 (Berkeley) %G% |
| 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 |
| 18 | The |
| 19 | .Nm uname |
| 20 | command writes the name of the operating system to the standard output. |
| 21 | When options are specified, strings representing one or more system |
| 22 | characteristics are written to the standard output. |
| 23 | .Pp |
| 24 | The options are as follows: |
| 25 | .Bl -tag -width Ds |
| 26 | .It Fl a |
| 27 | Behave as though the options |
| 28 | .Fl m , |
| 29 | .Fl n , |
| 30 | .Fl r , |
| 31 | .Fl s , |
| 32 | and |
| 33 | .Fl v |
| 34 | were specified. |
| 35 | .It Fl m |
| 36 | Write the type of the current hardware platform to standard output. |
| 37 | .It Fl n |
| 38 | Write the name of the system to standard output. |
| 39 | .It Fl r |
| 40 | Write the current release level of the operating system |
| 41 | to standard output. |
| 42 | .It Fl s |
| 43 | Write the type of the operating system to standard output. |
| 44 | .It Fl v |
| 45 | Write the version level of this release of the operating system |
| 46 | to standard output. |
| 47 | .El |
| 48 | .Pp |
| 49 | If the |
| 50 | .Fl a |
| 51 | flag is specified, or multiple flags are specified, all |
| 52 | output is written on a single line, separated by spaces. |
| 53 | .Pp |
| 54 | The |
| 55 | .Nm uname |
| 56 | utility exits 0 on success, and >0 if an error occurs. |
| 57 | .Sh SEE ALSO |
| 58 | .Xr sysctl 1 , |
| 59 | .Xr sysctl 2 |
| 60 | .Sh HISTORY |
| 61 | The |
| 62 | .Nm uname |
| 63 | command appeared in 4.4BSD. |
| 64 | .Sh STANDARDS |
| 65 | The |
| 66 | .Nm ls |
| 67 | function is expected to conform to the |
| 68 | .St -p1003.2 |
| 69 | specification. |