[BACK]Return to uname.1 CVS log [TXT][DIR] Up to [local] / src / usr.bin / uname

Annotation of src/usr.bin/uname/uname.1, Revision 1.14

1.14    ! jmc         1: .\"    $OpenBSD: uname.1,v 1.13 2007/05/31 19:20:18 jmc Exp $
1.8       aaron       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.
1.10      millert    14: .\" 3. Neither the name of the University nor the names of its contributors
1.1       deraadt    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
                     31: .\"
1.14    ! jmc        32: .Dd $Mdocdate: May 31 2007 $
1.1       deraadt    33: .Dt UNAME 1
                     34: .Os
                     35: .Sh NAME
                     36: .Nm uname
1.4       aaron      37: .Nd print operating system name
1.1       deraadt    38: .Sh SYNOPSIS
                     39: .Nm uname
1.11      jmc        40: .Op Fl amnprsv
1.1       deraadt    41: .Sh DESCRIPTION
                     42: The
                     43: .Nm uname
                     44: utility writes symbols representing one or more system characteristics
                     45: to the standard output.
                     46: .Pp
1.6       aaron      47: The options are as follows:
1.9       aaron      48: .Bl -tag -width Ds
1.5       aaron      49: .It Fl a
1.1       deraadt    50: Behave as though all of the options
1.5       aaron      51: .Fl mnrsv
1.1       deraadt    52: were specified.
                     53: .It Fl m
1.4       aaron      54: Print the machine hardware name.
1.1       deraadt    55: .It Fl n
1.4       aaron      56: Print the nodename (the nodename may be a name
1.1       deraadt    57: that the system is known by to a communications
                     58: network).
1.3       deraadt    59: .It Fl p
1.4       aaron      60: Print the processor type in more detail.
1.11      jmc        61: .It Fl r
                     62: Print the operating system release.
1.1       deraadt    63: .It Fl s
1.4       aaron      64: Print the operating system name.
1.1       deraadt    65: .It Fl v
1.4       aaron      66: Print the operating system version.
1.1       deraadt    67: .El
                     68: .Pp
1.5       aaron      69: If no options are specified,
1.1       deraadt    70: .Nm uname
                     71: prints the operating system name as if the
                     72: .Fl s
                     73: option had been specified.
                     74: .Sh SEE ALSO
                     75: .Xr hostname 1 ,
                     76: .Xr machine 1 ,
                     77: .Xr uname 3
                     78: .Sh STANDARDS
                     79: The
1.12      jmc        80: .Nm
                     81: utility is compliant with the
1.14    ! jmc        82: .St -p1003.1-2008
1.12      jmc        83: specification.
                     84: .Pp
                     85: The flag
                     86: .Op Fl p
                     87: is an extension to that specification.
1.7       aaron      88: .Sh HISTORY
                     89: The
                     90: .Nm
                     91: command appeared in
                     92: .Bx 4.4 .