Hallo, dies ist ein Test.
PWD: /www/data-lst1/unixsoft/unixsoft/kaempfer/.public_html
Running in File Mode
Relative path: ./../../../../../../usr/man/man1/uname.1
Real path: /usr/share/man/man1/uname.1
Zurück
'\" te .\" Copyright (c) 1989, AT&T. All rights reserved. .\" Portions Copyright (c) 1992, The X/Open Company Ltd. All rights reserved. .\" Portions Copyright (c) 2003, 2021, Oracle and/or its affiliates. .\" 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. This notice shall appear on any product containing this material. .TH uname 1 "3 Nov 2021" "Oracle Solaris 11.4" "User Commands" .SH NAME uname \- print name of current system .SH SYNOPSIS .LP .nf \fBuname\fR [\fB-a\fR | \fB--all\fR] [\fB-i\fR | \fB--hardware-platform\fR] [\fB-m\fR | \fB--machine\fR] [\fB-n\fR | \fB--nodename\fR] [\fB-o\fR | \fB--operating-system\fR] [\fB-p\fR | \fB--processor\fR] [\fB-r\fR | \fB--kernel-release\fR] [\fB-s\fR | \fB--kernel-name\fR] [\fB-v\fR | \fB--kernel-version\fR] [\fB-V | --virtual-environment\fR] [\fB-X\fR] .fi .LP .nf \fBuname\fR \fB--help\fR .fi .LP .nf \fBuname\fR [\fB-S\fR \fIsystem_name\fR] .fi .SH DESCRIPTION .sp .LP The \fBuname\fR utility prints information about the current system on the standard output. When options are specified, symbols representing one or more system characteristics will be written to the standard output. If no options are specified, \fBuname\fR prints the current operating system's name. The options print selected information returned by \fBuname\fR(2), \fBsysinfo\fR(2), or both. .sp .LP Independent software vendors (\fBISVs\fR) and others should not use the \fBuname\fR command to determine detailed characteristics of the platform on which their software is either being installed or executed. Instead, tests for the particular feature or facility should be performed ideally either at runtime or at build time. .sp .LP The operating system version and release are intended only as a very high level hint as to the Oracle Solaris installation. For more information about Oracle Solaris software versions, see the \fBpkg\fR(1) man page. .SH OPTIONS .sp .LP The following options are supported: .sp .ne 2 .mk .na \fB\fB-a\fR, \fB--all\fR\fR .ad .br .sp .6 .RS 4n Prints basic information currently available from the system. .RE .sp .ne 2 .mk .na \fB\fB--help\fR\fR .ad .br .sp .6 .RS 4n Display usage message and exit. .RE .sp .ne 2 .mk .na \fB\fB-i\fR, \fB--hardware-platform\fR\fR .ad .br .sp .6 .RS 4n Prints the name of the platform. For machines of the \fBsun4v\fR architecture, the \fB-i\fR option returns: \fBsun4v\fR. Use \fBprtconf\fR(8) with the \fB-b\fR option to obtain the platform name for a \fBsun4v\fR machine. .RE .sp .ne 2 .mk .na \fB\fB-m\fR, \fB--machine\fR\fR .ad .br .sp .6 .RS 4n Prints the machine hardware name (class). Use of this option is discouraged. Use \fBuname\fR \fB-p\fR instead. See NOTES section below. .RE .sp .ne 2 .mk .na \fB\fB-n\fR, \fB--nodename\fR\fR .ad .br .sp .6 .RS 4n Prints the nodename (the nodename is the name by which the system is known to a communications network). .RE .sp .ne 2 .mk .na \fB\fB-o\fR, \fB--operating-system\fR\fR .ad .br .sp .6 .RS 4n Print the name of the operating system. .RE .sp .ne 2 .mk .na \fB\fB-p\fR, \fB--processor\fR\fR .ad .br .sp .6 .RS 4n Prints the current host's \fBISA\fR or processor type. .RE .sp .ne 2 .mk .na \fB\fB-r\fR, \fB--kernel-release\fR\fR .ad .br .sp .6 .RS 4n Prints the operating system release level. .RE .sp .ne 2 .mk .na \fB\fB-s\fR, \fB--kernel-name\fR\fR .ad .br .sp .6 .RS 4n Prints the name of the operating system. This is the default. .RE .sp .ne 2 .mk .na \fB\fB-S\fR \fIsystem_name\fR\fR .ad .br .sp .6 .RS 4n The nodename may be changed by specifying a system name argument. The system name argument is restricted to \fBSYS_NMLN\fR characters. \fBSYS_NMLN\fR is an implementation specific value defined in \fB<sys/utsname.h>\fR. The {\fBPRIV_SYS_ADMIN\fR} privilege is required. .sp This change does not persist across reboots of the system. Use \fBhostname\fR(1) to make persistent changes to the system name. .RE .sp .ne 2 .mk .na \fB\fB-v\fR, \fB--kernel-version\fR\fR .ad .br .sp .6 .RS 4n Prints the operating system version. .RE .sp .ne 2 .mk .na \fB\fB-V\fR, \fB--virtual-environment\fR\fR .ad .br .sp .6 .RS 4n Prints the current virtual environment. See \fBvirtinfo(8)\fR for more information. .RE .sp .ne 2 .mk .na \fB\fB-X\fR\fR .ad .br .sp .6 .RS 4n Prints expanded system information, one information element per line, as expected by SCO UNIX. The displayed information includes: .RS +4 .TP .ie t \(bu .el o system name, node, release, version, machine, and number of CPUs. .RE .RS +4 .TP .ie t \(bu .el o BusType, Serial, and Users (set to \fB<unknown>\fR in Solaris) .RE .RS +4 .TP .ie t \(bu .el o OEM# and Origin# (set to \fB0\fR and \fB1\fR, respectively) .RE .RE .SH EXAMPLES .LP \fBExample 1\fR Printing the OS Name and Release Level .sp .LP The following command prints the operating system name and release level, separated by one \fBSPACE\fR character: .sp .in +2 .nf example% \fBuname \(misr\fR SunOS 5.11 .fi .in -2 .sp .SH ENVIRONMENT VARIABLES .sp .LP See \fBenviron\fR(7) for descriptions of the following environment variables that affect the execution of \fBuname\fR: \fBLANG\fR, \fBLC_ALL\fR, \fBLC_CTYPE\fR, \fBLC_MESSAGES\fR, and \fBNLSPATH\fR. .SH EXIT STATUS .sp .LP The following exit values are returned: .sp .ne 2 .mk .na \fB\fB0\fR\fR .ad .RS 13n .rt Successful completion. .RE .sp .ne 2 .mk .na \fB\fB>0\fR\fR .ad .RS 13n .rt An error occurred. .RE .SH ATTRIBUTES .sp .LP See \fBattributes\fR(7) for descriptions of the following attributes: .sp .TS tab( ) box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) . ATTRIBUTE TYPE ATTRIBUTE VALUE _ Availability system/core-os _ Interface Stability Committed _ Standard See \fBstandards\fR(7). .TE .sp .SH SEE ALSO .sp .LP \fBarch\fR(1), \fBhostname\fR(1), \fBisainfo\fR(1), \fBisalist\fR(1), \fBsysinfo\fR(2), \fBuname\fR(2), \fBgetopt_long\fR(3C), \fBnodename\fR(5), \fBattributes\fR(7), \fBenviron\fR(7), \fBprivileges\fR(7), \fBstandards\fR(7), \fBprtconf\fR(8), \fBvirtinfo\fR(8) .SH NOTES .sp .LP To determine the operating system name and release level, use \fBuname\fR \fB-sr\fR. To determine only the operating system release level, use \fBuname\fR \fB-r\fR. Notice that operating system release levels are not guaranteed to be in \fIx.y\fR format (such as 5.3, 5.4, 5.5, and so forth); future releases could be in the \fIx.y.z\fR format (such as 5.3.1, 5.3.2, 5.4.1, and so forth). .sp .LP To determine supported instruction set architectures, including 32-bit or 64-bit variants, use \fBisainfo\fR(1) instead of the \fBuname\fR command. .sp .LP In SunOS 4.\fIx\fR releases, the \fBarch\fR(1) command was often used to obtain information similar to that obtained by using the \fBuname\fR command. The \fBarch\fR(1) command output \fBsun4\fR was often incorrectly interpreted to signify a SunOS SPARC system. If hardware platform information is desired, use \fBuname\fR \fB-sp\fR. .sp .LP The \fBarch\fR \fB-k\fR and \fBuname\fR \fB-m\fR commands return equivalent values; however, the use of either of these commands by third party programs is discouraged, as is the use of the \fBarch\fR command in general. To determine the machine's Instruction Set Architecture (\fBISA\fR or processor type), use \fBuname\fR with the \fB-p\fR option. .SH HISTORY .sp .LP Support for the \fB-V\fR and \fB--virtual-environment\fR options was added in the Oracle Solaris 11.4.36 release. .sp .LP Support for the \fB-o\fR option, and the long options \fB--all\fR, \fB--hardware-platform\fR, \fB--kernel-name\fR, \fB--kernel-release\fR, \fB--kernel-version\fR, \fB--machine\fR, \fB--nodename\fR, \fB--processor\fR, and \fB--help\fR was added to Oracle Solaris in the Solaris 11.4.0 release. .sp .LP Support for providing output in the historical formats used by System V Release 3 systems by setting the \fBSYSV3\fR environment variable was removed in the Solaris 11.0.0 release. .sp .LP Support for the \fB-X\fR option and the \fBSYSV3\fR environment variable was added in the Solaris 2.6 release. .sp .LP Support for the \fB-i\fR option was added in the Solaris 2.5 release. .sp .LP Support for the \fB-p\fR option was added in the Solaris 2.0 release. .sp .LP The \fBuname\fR command, including support for the \fB-a\fR, \fB-m\fR, \fB-n\fR, \fB-r\fR, \fB-s\fR, and \fB-v\fR options, has been included in all Sun and Oracle releases of Solaris.