Commit | Line | Data |
---|---|---|
07a6b89c KB |
1 | .\" Copyright (c) 1993 |
2 | .\" The Regents of the University of California. All rights reserved. | |
17515cb1 KB |
3 | .\" |
4 | .\" %sccs.include.redist.roff% | |
5 | .\" | |
3f017dfc | 6 | .\" @(#)uname.1 8.3 (Berkeley) %G% |
17515cb1 KB |
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 | |
3f017dfc JSP |
20 | command writes the name of the operating system implementation to |
21 | standard output. | |
17515cb1 | 22 | When options are specified, strings representing one or more system |
3f017dfc | 23 | characteristics are written to standard output. |
17515cb1 KB |
24 | .Pp |
25 | The options are as follows: | |
26 | .Bl -tag -width Ds | |
27 | .It Fl a | |
28 | Behave as though the options | |
29 | .Fl m , | |
30 | .Fl n , | |
31 | .Fl r , | |
32 | .Fl s , | |
33 | and | |
34 | .Fl v | |
35 | were specified. | |
36 | .It Fl m | |
37 | Write the type of the current hardware platform to standard output. | |
38 | .It Fl n | |
39 | Write the name of the system to standard output. | |
40 | .It Fl r | |
41 | Write the current release level of the operating system | |
42 | to standard output. | |
43 | .It Fl s | |
3f017dfc | 44 | Write the name of the operating system implementation to standard output. |
17515cb1 KB |
45 | .It Fl v |
46 | Write the version level of this release of the operating system | |
47 | to standard output. | |
48 | .El | |
49 | .Pp | |
50 | If the | |
51 | .Fl a | |
52 | flag is specified, or multiple flags are specified, all | |
53 | output is written on a single line, separated by spaces. | |
54 | .Pp | |
55 | The | |
56 | .Nm uname | |
57 | utility exits 0 on success, and >0 if an error occurs. | |
58 | .Sh SEE ALSO | |
bec57f18 KB |
59 | .Xr sysctl 8 , |
60 | .Xr sysctl 3 , | |
61 | .Xr uname 3 | |
17515cb1 KB |
62 | .Sh HISTORY |
63 | The | |
64 | .Nm uname | |
65 | command appeared in 4.4BSD. | |
66 | .Sh STANDARDS | |
67 | The | |
3f017dfc JSP |
68 | .Nm uname |
69 | command is expected to conform to the | |
17515cb1 KB |
70 | .St -p1003.2 |
71 | specification. |