8212 manpages contain obsolete references
[unleashed.git] / usr / src / man / man1 / uname.1
bloba8e879fab29cbeda382927554a1b27d49848250e
1 '\" te
2 .\" Copyright 1989 AT&T
3 .\" Copyright (c) 2003, Sun Microsystems, Inc.  All Rights Reserved
4 .\" Portions Copyright (c) 1992, X/Open Company Limited  All Rights Reserved
5 .\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for permission to reproduce portions of its copyrighted documentation. Original documentation from The Open Group can be obtained online at
6 .\" http://www.opengroup.org/bookstore/.
7 .\" The Institute of Electrical and Electronics Engineers and The Open Group, have given us permission to reprint portions of their documentation. In the following statement, the phrase "this text" refers to portions of the system documentation. Portions of this text are reprinted and reproduced in electronic form in the Sun OS Reference Manual, from IEEE Std 1003.1, 2004 Edition, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2004 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between these versions and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html.
8 .\"  This notice shall appear on any product containing this material.
9 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
10 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
11 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
12 .TH UNAME 1 "May 13, 2017"
13 .SH NAME
14 uname \- print name of current system
15 .SH SYNOPSIS
16 .LP
17 .nf
18 \fBuname\fR [\fB-aimnprsvX\fR]
19 .fi
21 .LP
22 .nf
23 \fBuname\fR [\fB-S\fR \fIsystem_name\fR]
24 .fi
26 .SH DESCRIPTION
27 .LP
28 The \fBuname\fR utility prints information about the current system on the
29 standard output. When options are specified, symbols representing one or more
30 system characteristics will be written to the standard output. If no options
31 are specified, \fBuname\fR prints the current operating system's name. The
32 options print selected information returned by \fBuname\fR(2),
33 \fBsysinfo\fR(2), or both.
34 .SH OPTIONS
35 .LP
36 The following options are supported:
37 .sp
38 .ne 2
39 .na
40 \fB\fB-a\fR\fR
41 .ad
42 .RS 18n
43 Prints basic information currently available from the system.
44 .RE
46 .sp
47 .ne 2
48 .na
49 \fB\fB-i\fR\fR
50 .ad
51 .RS 18n
52 Prints the name of the platform.
53 .RE
55 .sp
56 .ne 2
57 .na
58 \fB\fB-m\fR\fR
59 .ad
60 .RS 18n
61 Prints the machine hardware name (class). Use of this option is discouraged.
62 Use \fBuname\fR \fB-p\fR instead. See NOTES section below.
63 .RE
65 .sp
66 .ne 2
67 .na
68 \fB\fB-n\fR\fR
69 .ad
70 .RS 18n
71 Prints the nodename (the nodename is the name by which the system is known to a
72 communications network).
73 .RE
75 .sp
76 .ne 2
77 .na
78 \fB\fB-p\fR\fR
79 .ad
80 .RS 18n
81 Prints the current host's \fBISA\fR or processor type.
82 .RE
84 .sp
85 .ne 2
86 .na
87 \fB\fB-r\fR\fR
88 .ad
89 .RS 18n
90 Prints the operating system release level.
91 .RE
93 .sp
94 .ne 2
95 .na
96 \fB\fB-s\fR\fR
97 .ad
98 .RS 18n
99 Prints the name of the operating system. This is the default.
103 .ne 2
105 \fB\fB-S\fR \fIsystem_name\fR\fR
107 .RS 18n
108 The nodename may be changed by specifying a system name argument. The system
109 name argument is restricted to \fBSYS_NMLN\fR characters. \fBSYS_NMLN\fR is an
110 implementation specific value defined in \fB<sys/utsname.h>\fR\&. Only the
111 super-user is allowed this capability. This change does not persist across
112 reboots of the system. See \fBnodename\fR(4) for details of how to change a
113 host's name permanently.
117 .ne 2
119 \fB\fB-v\fR\fR
121 .RS 18n
122 Prints the operating system version.
126 .ne 2
128 \fB\fB-X\fR \fR
130 .RS 18n
131 Prints expanded system information, one information element per line, as
132 expected by SCO UNIX. The displayed information includes:
133 .RS +4
135 .ie t \(bu
136 .el o
137 system name, node, release, version, machine, and number of CPUs.
139 .RS +4
141 .ie t \(bu
142 .el o
143 BusType, Serial, and Users (set to "unknown" in Solaris)
145 .RS +4
147 .ie t \(bu
148 .el o
149 OEM# and Origin# (set to \fB0\fR and \fB1\fR, respectively)
153 .SH EXAMPLES
155 \fBExample 1 \fRPrinting the OS name and release level
158 The following command:
161 .in +2
163 example% \fBuname \(misr\fR
165 .in -2
170 prints the operating system name and release level, separated by one SPACE
171 character.
173 .SH ENVIRONMENT VARIABLES
175 See \fBenviron\fR(5) for descriptions of the following environment variables
176 that affect the execution of \fBuname\fR: \fBLANG\fR, \fBLC_ALL\fR,
177 \fBLC_CTYPE\fR, \fBLC_MESSAGES\fR, and \fBNLSPATH\fR.
179 .SH EXIT STATUS
181 The following exit values are returned:
183 .ne 2
185 \fB\fB0\fR \fR
187 .RS 7n
188 Successful completion.
192 .ne 2
194 \fB\fB>0\fR \fR
196 .RS 7n
197 An error occurred.
200 .SH ATTRIBUTES
202 See \fBattributes\fR(5) for descriptions of the following attributes:
207 box;
208 c | c
209 l | l .
210 ATTRIBUTE TYPE  ATTRIBUTE VALUE
212 Interface Stability     Standard
215 .SH SEE ALSO
217 \fBarch\fR(1), \fBisalist\fR(1), \fBsysinfo\fR(2),
218 \fBuname\fR(2), \fBnodename\fR(4), \fBattributes\fR(5), \fBenviron\fR(5),
219 \fBstandards\fR(5)
220 .SH NOTES
222 Independent software vendors (\fBISV\fRs) and others who need to determine
223 detailed characteristics of the platform on which their software is either
224 being installed or executed should use the \fBuname\fR command.
227 To determine the operating system name and release level, use \fBuname
228 \fR\fB-sr\fR. To determine only the operating system release level, use
229 \fBuname \fR\fB-r\fR. Notice that operating system release levels are not
230 guaranteed to be in \fIx.y\fR format (such as 5.3, 5.4, 5.5, and so forth);
231 but could be in the \fIx.y.z\fR format (such as 5.5.1).
234 In SunOS 4.\fIx\fR releases, the \fBarch\fR(1) command was often used to obtain
235 information similar to that obtained by using the \fBuname\fR command. The
236 \fBarch\fR(1) command output "sun4" was often incorrectly interpreted to
237 signify a SunOS SPARC system. If hardware platform information is desired, use
238 \fBuname \fR\fB-sp\fR.
241 The \fBarch\fR \fB-k\fR and \fBuname\fR \fB-m\fR commands return equivalent
242 values; however, the use of either of these commands by third party programs is
243 discouraged, as is the use of the \fBarch\fR command in general. To determine
244 the machine's Instruction Set Architecture (\fBISA\fR or processor type), use
245 \fBuname\fR with the \fB-p\fR option.