Annotation of src/usr.bin/uname/uname.1, Revision 1.8
1.8 ! aaron 1: .\" $OpenBSD: uname.1,v 1.7 2000/03/06 03:16:00 aaron Exp $
! 2: .\"
1.1 deraadt 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.
14: .\" 3. All advertising materials mentioning features or use of this software
15: .\" must display the following acknowledgement:
16: .\" This product includes software developed by the University of
17: .\" California, Berkeley and its contributors.
18: .\" 4. Neither the name of the University nor the names of its contributors
19: .\" may be used to endorse or promote products derived from this software
20: .\" without specific prior written permission.
21: .\"
22: .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
23: .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24: .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25: .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
26: .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27: .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28: .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29: .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30: .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31: .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32: .\" SUCH DAMAGE.
33: .\"
34: .\" from: @(#)du.1 6.13 (Berkeley) 6/20/91
35: .\"
36: .Dd January 26, 1994
37: .Dt UNAME 1
38: .Os
39: .Sh NAME
40: .Nm uname
1.4 aaron 41: .Nd print operating system name
1.1 deraadt 42: .Sh SYNOPSIS
43: .Nm uname
1.3 deraadt 44: .Op Fl amnpsrv
1.1 deraadt 45: .Sh DESCRIPTION
46: The
47: .Nm uname
48: utility writes symbols representing one or more system characteristics
49: to the standard output.
50: .Pp
1.6 aaron 51: The options are as follows:
1.1 deraadt 52: .Bl -tag -width indent
1.5 aaron 53: .It Fl a
1.1 deraadt 54: Behave as though all of the options
1.5 aaron 55: .Fl mnrsv
1.1 deraadt 56: were specified.
57: .It Fl m
1.4 aaron 58: Print the machine hardware name.
1.1 deraadt 59: .It Fl n
1.4 aaron 60: Print the nodename (the nodename may be a name
1.1 deraadt 61: that the system is known by to a communications
62: network).
1.3 deraadt 63: .It Fl p
1.4 aaron 64: Print the processor type in more detail.
1.1 deraadt 65: .It Fl s
1.4 aaron 66: Print the operating system name.
1.1 deraadt 67: .It Fl r
1.4 aaron 68: Print the operating system release.
1.1 deraadt 69: .It Fl v
1.4 aaron 70: Print the operating system version.
1.1 deraadt 71: .El
72: .Pp
1.5 aaron 73: If no options are specified,
1.1 deraadt 74: .Nm uname
75: prints the operating system name as if the
76: .Fl s
77: option had been specified.
78: .Sh SEE ALSO
79: .Xr hostname 1 ,
80: .Xr machine 1 ,
81: .Xr uname 3
82: .Sh STANDARDS
83: The
84: .Nm uname
85: utility conforms to
86: .St -p1003.2-92 .
1.7 aaron 87: .Sh HISTORY
88: The
89: .Nm
90: command appeared in
91: .Bx 4.4 .