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