fix typos
[unix-history] / usr / src / usr.bin / uname / uname.1
CommitLineData
07a6b89c
KB
1.\" Copyright (c) 1993
2.\" The Regents of the University of California. All rights reserved.
17515cb1
KB
3.\"
4.\" %sccs.include.redist.roff%
5.\"
3f017dfc 6.\" @(#)uname.1 8.3 (Berkeley) %G%
17515cb1
KB
7.\"
8.Dd ""
9.Dt UNAME 1
10.Os
11.Sh NAME
12.Nm uname
13.Nd display information about the system
14.Sh SYNOPSIS
15.Nm uname
16.Op Fl amnrsv
17.Sh DESCRIPTION
18The
19.Nm uname
3f017dfc
JSP
20command writes the name of the operating system implementation to
21standard output.
17515cb1 22When options are specified, strings representing one or more system
3f017dfc 23characteristics are written to standard output.
17515cb1
KB
24.Pp
25The options are as follows:
26.Bl -tag -width Ds
27.It Fl a
28Behave as though the options
29.Fl m ,
30.Fl n ,
31.Fl r ,
32.Fl s ,
33and
34.Fl v
35were specified.
36.It Fl m
37Write the type of the current hardware platform to standard output.
38.It Fl n
39Write the name of the system to standard output.
40.It Fl r
41Write the current release level of the operating system
42to standard output.
43.It Fl s
3f017dfc 44Write the name of the operating system implementation to standard output.
17515cb1
KB
45.It Fl v
46Write the version level of this release of the operating system
47to standard output.
48.El
49.Pp
50If the
51.Fl a
52flag is specified, or multiple flags are specified, all
53output is written on a single line, separated by spaces.
54.Pp
55The
56.Nm uname
57utility exits 0 on success, and >0 if an error occurs.
58.Sh SEE ALSO
bec57f18
KB
59.Xr sysctl 8 ,
60.Xr sysctl 3 ,
61.Xr uname 3
17515cb1
KB
62.Sh HISTORY
63The
64.Nm uname
65command appeared in 4.4BSD.
66.Sh STANDARDS
67The
3f017dfc
JSP
68.Nm uname
69command is expected to conform to the
17515cb1
KB
70.St -p1003.2
71specification.