]>
Commit | Line | Data |
---|---|---|
e1a085ba | 1 | .\" $NetBSD: uname.1,v 1.12 2005/03/27 18:41:22 peter Exp $ |
44bd5ea7 A |
2 | .\" |
3 | .\" Copyright (c) 1990 The Regents of the University of California. | |
4 | .\" All rights reserved. | |
5 | .\" | |
6 | .\" Redistribution and use in source and binary forms, with or without | |
7 | .\" modification, are permitted provided that the following conditions | |
8 | .\" are met: | |
9 | .\" 1. Redistributions of source code must retain the above copyright | |
10 | .\" notice, this list of conditions and the following disclaimer. | |
11 | .\" 2. Redistributions in binary form must reproduce the above copyright | |
12 | .\" notice, this list of conditions and the following disclaimer in the | |
13 | .\" documentation and/or other materials provided with the distribution. | |
e1a085ba | 14 | .\" 3. Neither the name of the University nor the names of its contributors |
44bd5ea7 A |
15 | .\" may be used to endorse or promote products derived from this software |
16 | .\" without specific prior written permission. | |
17 | .\" | |
18 | .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | |
19 | .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | |
20 | .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | |
21 | .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | |
22 | .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | |
23 | .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | |
24 | .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |
25 | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | |
26 | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | |
27 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | |
28 | .\" SUCH DAMAGE. | |
29 | .\" | |
30 | .\" from: @(#)du.1 6.13 (Berkeley) 6/20/91 | |
e1a085ba | 31 | .\" $NetBSD: uname.1,v 1.12 2005/03/27 18:41:22 peter Exp $ |
44bd5ea7 | 32 | .\" |
e1a085ba | 33 | .Dd November 9, 1998 |
44bd5ea7 A |
34 | .Dt UNAME 1 |
35 | .Os | |
36 | .Sh NAME | |
37 | .Nm uname | |
38 | .Nd Print operating system name | |
39 | .Sh SYNOPSIS | |
40 | .Nm | |
e1a085ba | 41 | .Op Fl amnprsv |
44bd5ea7 A |
42 | .Sh DESCRIPTION |
43 | The | |
44 | .Nm | |
45 | utility writes symbols representing one or more system characteristics | |
46 | to the standard output. | |
47 | .Pp | |
48 | The following options are available: | |
49 | .Bl -tag -width indent | |
e1a085ba | 50 | .It Fl a |
44bd5ea7 | 51 | Behave as though all of the options |
e1a085ba | 52 | .Fl mnrsv |
44bd5ea7 A |
53 | were specified. |
54 | .It Fl m | |
55 | print the machine hardware name. | |
56 | .It Fl n | |
57 | print the nodename (the nodename may be a name | |
58 | that the system is known by to a communications | |
59 | network). | |
60 | .It Fl p | |
e1a085ba | 61 | print the machine processor architecture name. |
44bd5ea7 A |
62 | .It Fl r |
63 | print the operating system release. | |
e1a085ba A |
64 | .It Fl s |
65 | print the operating system name. | |
44bd5ea7 A |
66 | .It Fl v |
67 | print the operating system version. | |
68 | .El | |
69 | .Pp | |
e1a085ba | 70 | If no options are specified, |
44bd5ea7 A |
71 | .Nm |
72 | prints the operating system name as if the | |
73 | .Fl s | |
74 | option had been specified. | |
75 | .Sh SEE ALSO | |
76 | .Xr hostname 1 , | |
77 | .Xr machine 1 , | |
f14763b6 | 78 | .Xr sw_vers 1 , |
44bd5ea7 A |
79 | .Xr uname 3 |
80 | .Sh STANDARDS | |
81 | The | |
82 | .Nm | |
83 | utility conforms to | |
84 | .St -p1003.2-92 . | |
e1a085ba A |
85 | The |
86 | .Fl p | |
87 | option is an extension to the standard. |