xref: /netbsd-src/usr.bin/uname/uname.1 (revision 272712e0e4825107b8647f8def5924f6ddabd223)
1*272712e0Speter.\"	$NetBSD: uname.1,v 1.12 2005/03/27 18:41:22 peter Exp $
29d225a17Stls.\"
3c5d886afScgd.\" Copyright (c) 1990 The Regents of the University of California.
4c5d886afScgd.\" All rights reserved.
5c5d886afScgd.\"
6c5d886afScgd.\" Redistribution and use in source and binary forms, with or without
7c5d886afScgd.\" modification, are permitted provided that the following conditions
8c5d886afScgd.\" are met:
9c5d886afScgd.\" 1. Redistributions of source code must retain the above copyright
10c5d886afScgd.\"    notice, this list of conditions and the following disclaimer.
11c5d886afScgd.\" 2. Redistributions in binary form must reproduce the above copyright
12c5d886afScgd.\"    notice, this list of conditions and the following disclaimer in the
13c5d886afScgd.\"    documentation and/or other materials provided with the distribution.
1489aaa1bbSagc.\" 3. Neither the name of the University nor the names of its contributors
15c5d886afScgd.\"    may be used to endorse or promote products derived from this software
16c5d886afScgd.\"    without specific prior written permission.
17c5d886afScgd.\"
18c5d886afScgd.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
19c5d886afScgd.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20c5d886afScgd.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21c5d886afScgd.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
22c5d886afScgd.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23c5d886afScgd.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24c5d886afScgd.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25c5d886afScgd.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26c5d886afScgd.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27c5d886afScgd.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28c5d886afScgd.\" SUCH DAMAGE.
29c5d886afScgd.\"
30c3e42d1cSmycroft.\"     from: @(#)du.1	6.13 (Berkeley) 6/20/91
31*272712e0Speter.\"	$NetBSD: uname.1,v 1.12 2005/03/27 18:41:22 peter Exp $
32c5d886afScgd.\"
338ff7d07bSkleink.Dd November 9, 1998
34c5d886afScgd.Dt UNAME 1
3584439220Sjtc.Os
36c5d886afScgd.Sh NAME
37c5d886afScgd.Nm uname
38e23a19d3Sjtc.Nd Print operating system name
39c5d886afScgd.Sh SYNOPSIS
4035884aebSlukem.Nm
41*272712e0Speter.Op Fl amnprsv
42c5d886afScgd.Sh DESCRIPTION
43c5d886afScgdThe
4435884aebSlukem.Nm
45e23a19d3Sjtcutility writes symbols representing one or more system characteristics
46e23a19d3Sjtcto the standard output.
47c5d886afScgd.Pp
48c5d886afScgdThe following options are available:
49c5d886afScgd.Bl -tag -width indent
5084439220Sjtc.It Fl a
5184439220SjtcBehave as though all of the options
5284439220Sjtc.Fl mnrsv
5384439220Sjtcwere specified.
5484439220Sjtc.It Fl m
5584439220Sjtcprint the machine hardware name.
56c5d886afScgd.It Fl n
57c5d886afScgdprint the nodename (the nodename may be a name
58c5d886afScgdthat the system is known by to a communications
59c5d886afScgdnetwork).
608ff7d07bSkleink.It Fl p
618ff7d07bSkleinkprint the machine processor architecture name.
62c5d886afScgd.It Fl r
63c5d886afScgdprint the operating system release.
64a2a40148Swiz.It Fl s
65a2a40148Swizprint the operating system name.
66c5d886afScgd.It Fl v
67c5d886afScgdprint the operating system version.
6884439220Sjtc.El
6984439220Sjtc.Pp
7084439220SjtcIf no options are specified,
7135884aebSlukem.Nm
7284439220Sjtcprints the operating system name as if the
7384439220Sjtc.Fl s
7484439220Sjtcoption had been specified.
75c5d886afScgd.Sh SEE ALSO
76c5d886afScgd.Xr hostname 1 ,
77c5d886afScgd.Xr machine 1 ,
783d28649eSmycroft.Xr uname 3
79c5d886afScgd.Sh STANDARDS
80c5d886afScgdThe
8135884aebSlukem.Nm
8284439220Sjtcutility conforms to
8384439220Sjtc.St -p1003.2-92 .
848ff7d07bSkleinkThe
858ff7d07bSkleink.Fl p
868ff7d07bSkleinkoption is an extension to the standard.
87