166492cf0SYuri Pankov.\" 266492cf0SYuri Pankov.\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for 366492cf0SYuri Pankov.\" permission to reproduce portions of its copyrighted documentation. 466492cf0SYuri Pankov.\" Original documentation from The Open Group can be obtained online at 566492cf0SYuri Pankov.\" http://www.opengroup.org/bookstore/. 666492cf0SYuri Pankov.\" 766492cf0SYuri Pankov.\" The Institute of Electrical and Electronics Engineers and The Open 866492cf0SYuri Pankov.\" Group, have given us permission to reprint portions of their 966492cf0SYuri Pankov.\" documentation. 1066492cf0SYuri Pankov.\" 1166492cf0SYuri Pankov.\" In the following statement, the phrase ``this text'' refers to portions 1266492cf0SYuri Pankov.\" of the system documentation. 1366492cf0SYuri Pankov.\" 1466492cf0SYuri Pankov.\" Portions of this text are reprinted and reproduced in electronic form 1566492cf0SYuri Pankov.\" in the SunOS Reference Manual, from IEEE Std 1003.1, 2004 Edition, 1666492cf0SYuri Pankov.\" Standard for Information Technology -- Portable Operating System 1766492cf0SYuri Pankov.\" Interface (POSIX), The Open Group Base Specifications Issue 6, 1866492cf0SYuri Pankov.\" Copyright (C) 2001-2004 by the Institute of Electrical and Electronics 1966492cf0SYuri Pankov.\" Engineers, Inc and The Open Group. In the event of any discrepancy 2066492cf0SYuri Pankov.\" between these versions and the original IEEE and The Open Group 2166492cf0SYuri Pankov.\" Standard, the original IEEE and The Open Group Standard is the referee 2266492cf0SYuri Pankov.\" document. The original Standard can be obtained online at 2366492cf0SYuri Pankov.\" http://www.opengroup.org/unix/online.html. 2466492cf0SYuri Pankov.\" 2566492cf0SYuri Pankov.\" This notice shall appear on any product containing this material. 2666492cf0SYuri Pankov.\" 2766492cf0SYuri Pankov.\" The contents of this file are subject to the terms of the 2866492cf0SYuri Pankov.\" Common Development and Distribution License (the "License"). 2966492cf0SYuri Pankov.\" You may not use this file except in compliance with the License. 3066492cf0SYuri Pankov.\" 3166492cf0SYuri Pankov.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 3266492cf0SYuri Pankov.\" or http://www.opensolaris.org/os/licensing. 3366492cf0SYuri Pankov.\" See the License for the specific language governing permissions 3466492cf0SYuri Pankov.\" and limitations under the License. 3566492cf0SYuri Pankov.\" 3666492cf0SYuri Pankov.\" When distributing Covered Code, include this CDDL HEADER in each 3766492cf0SYuri Pankov.\" file and include the License file at usr/src/OPENSOLARIS.LICENSE. 3866492cf0SYuri Pankov.\" If applicable, add the following below this CDDL HEADER, with the 3966492cf0SYuri Pankov.\" fields enclosed by brackets "[]" replaced with your own identifying 4066492cf0SYuri Pankov.\" information: Portions Copyright [yyyy] [name of copyright owner] 4166492cf0SYuri Pankov.\" 4266492cf0SYuri Pankov.\" 43c10c16deSRichard Lowe.\" Copyright 1989 AT&T 44c10c16deSRichard Lowe.\" Portions Copyright (c) 1992, X/Open Company Limited All Rights Reserved 4566492cf0SYuri Pankov.\" Copyright (c) 2003, Sun Microsystems, Inc. All Rights Reserved 4684c66da4SAndy Fiddaman.\" Copyright 2018 Nexenta Systems, Inc. 4766492cf0SYuri Pankov.\" 4884c66da4SAndy Fiddaman.Dd February 9, 2018 4984c66da4SAndy Fiddaman.Dt UNAME 1 5084c66da4SAndy Fiddaman.Os 5184c66da4SAndy Fiddaman.Sh NAME 5284c66da4SAndy Fiddaman.Nm uname 5384c66da4SAndy Fiddaman.Nd print name of current system 5484c66da4SAndy Fiddaman.Sh SYNOPSIS 5584c66da4SAndy Fiddaman.Nm 5684c66da4SAndy Fiddaman.Op Fl aimnoprsvX 5784c66da4SAndy Fiddaman.Nm 5884c66da4SAndy Fiddaman.Fl S Ar system_name 5984c66da4SAndy Fiddaman.Sh DESCRIPTION 6084c66da4SAndy FiddamanThe 6184c66da4SAndy Fiddaman.Nm 6284c66da4SAndy Fiddamanutility prints information about the current system on the standard output. 6384c66da4SAndy FiddamanWhen options are specified, symbols representing one or more system 6484c66da4SAndy Fiddamancharacteristics will be written to the standard output. 6584c66da4SAndy FiddamanIf no options are specified, 6684c66da4SAndy Fiddaman.Nm 6784c66da4SAndy Fiddamanprints the current operating system's name. 6884c66da4SAndy FiddamanThe options print selected information returned by 6984c66da4SAndy Fiddaman.Xr uname 2 , 7084c66da4SAndy Fiddaman.Xr sysinfo 2 , 7184c66da4SAndy Fiddamanor both. 7284c66da4SAndy Fiddaman.Sh OPTIONS 73c10c16deSRichard LoweThe following options are supported: 7484c66da4SAndy Fiddaman.Bl -tag -width Ds 7584c66da4SAndy Fiddaman.It Fl a 76c10c16deSRichard LowePrints basic information currently available from the system. 7784c66da4SAndy Fiddaman.It Fl i 78c10c16deSRichard LowePrints the name of the platform. 7984c66da4SAndy Fiddaman.It Fl m 8084c66da4SAndy FiddamanPrints the machine hardware name (class). 8184c66da4SAndy FiddamanUse of this option is discouraged. 8284c66da4SAndy FiddamanUse 8384c66da4SAndy Fiddaman.Nm Fl p 8484c66da4SAndy Fiddamaninstead. 8584c66da4SAndy FiddamanSee 8684c66da4SAndy Fiddaman.Sx NOTES 8784c66da4SAndy Fiddamansection below. 8884c66da4SAndy Fiddaman.It Fl n 89c10c16deSRichard LowePrints the nodename (the nodename is the name by which the system is known to a 90c10c16deSRichard Lowecommunications network). 9184c66da4SAndy Fiddaman.It Fl o 9284c66da4SAndy FiddamanPrints the name of the kernel/OS. 9384c66da4SAndy Fiddaman.It Fl p 9484c66da4SAndy FiddamanPrints the current host's ISA or processor type. 9584c66da4SAndy Fiddaman.It Fl r 96c10c16deSRichard LowePrints the operating system release level. 9784c66da4SAndy Fiddaman.It Fl s 9884c66da4SAndy FiddamanPrints the name of the operating system. 9984c66da4SAndy FiddamanThis is the default. 10084c66da4SAndy Fiddaman.It Fl S Ar system_name 10184c66da4SAndy FiddamanThe nodename may be changed by specifying a system name argument. 10284c66da4SAndy FiddamanThe system name argument is restricted to 10384c66da4SAndy Fiddaman.Dv SYS_NMLN 10484c66da4SAndy Fiddamancharacters. 10584c66da4SAndy Fiddaman.Dv SYS_NMLN 10684c66da4SAndy Fiddamanis an implementation specific value defined in 10784c66da4SAndy Fiddaman.In sys/utsname.h . 10884c66da4SAndy FiddamanOnly the super-user is allowed this capability. 10984c66da4SAndy FiddamanThis change does not persist across reboots of the system. 11084c66da4SAndy FiddamanSee 111*bbf21555SRichard Lowe.Xr nodename 5 11284c66da4SAndy Fiddamanfor details of how to change a host's name permanently. 11384c66da4SAndy Fiddaman.It Fl v 114c10c16deSRichard LowePrints the operating system version. 11584c66da4SAndy Fiddaman.It Fl X 116c10c16deSRichard LowePrints expanded system information, one information element per line, as 11784c66da4SAndy Fiddamanexpected by SCO UNIX. 11884c66da4SAndy FiddamanThe displayed information includes: 11984c66da4SAndy Fiddaman.Bl -bullet 12084c66da4SAndy Fiddaman.It 121c10c16deSRichard Lowesystem name, node, release, version, machine, and number of CPUs. 12284c66da4SAndy Fiddaman.It 123c10c16deSRichard LoweBusType, Serial, and Users (set to "unknown" in Solaris) 12484c66da4SAndy Fiddaman.It 12584c66da4SAndy FiddamanOEM# and Origin# (set to 0 and 1, respectively) 12684c66da4SAndy Fiddaman.El 12784c66da4SAndy Fiddaman.El 12884c66da4SAndy Fiddaman.Sh EXIT STATUS 12984c66da4SAndy Fiddaman.Ex -std 13084c66da4SAndy Fiddaman.Sh EXAMPLES 13184c66da4SAndy Fiddaman.Bl -tag -width Ds 13284c66da4SAndy Fiddaman.It Sy Example 1 No Printing the OS name and release level 133c10c16deSRichard LoweThe following command: 13484c66da4SAndy Fiddaman.Bd -literal 13584c66da4SAndy Fiddaman$ uname -sr 13684c66da4SAndy Fiddaman.Ed 13784c66da4SAndy Fiddaman.Pp 13884c66da4SAndy Fiddaman\&...prints the operating system name and release level, separated by one SPACE 139c10c16deSRichard Lowecharacter. 14084c66da4SAndy Fiddaman.El 14184c66da4SAndy Fiddaman.Sh ENVIRONMENT VARIABLES 14284c66da4SAndy FiddamanSee 143*bbf21555SRichard Lowe.Xr environ 7 14484c66da4SAndy Fiddamanfor descriptions of the following environment variables that affect the 14584c66da4SAndy Fiddamanexecution of 14684c66da4SAndy Fiddaman.Nm : 14784c66da4SAndy Fiddaman.Ev LANG , LC_ALL , LC_CTYPE , LC_MESSAGES , 14884c66da4SAndy Fiddamanand 14984c66da4SAndy Fiddaman.Ev NLSPATH . 15084c66da4SAndy Fiddaman.Sh INTERFACE STABILITY 15184c66da4SAndy Fiddaman.Sy Standard 15284c66da4SAndy Fiddaman.Sh SEE ALSO 15384c66da4SAndy Fiddaman.Xr arch 1 , 15484c66da4SAndy Fiddaman.Xr isalist 1 , 15584c66da4SAndy Fiddaman.Xr sysinfo 2 , 15684c66da4SAndy Fiddaman.Xr uname 2 , 157*bbf21555SRichard Lowe.Xr nodename 5 , 158*bbf21555SRichard Lowe.Xr attributes 7 , 159*bbf21555SRichard Lowe.Xr environ 7 , 160*bbf21555SRichard Lowe.Xr standards 7 16184c66da4SAndy Fiddaman.Sh NOTES 16284c66da4SAndy FiddamanIndependent software vendors (ISVs) and others who need to determine detailed 16384c66da4SAndy Fiddamancharacteristics of the platform on which their software is either being 16484c66da4SAndy Fiddamaninstalled or executed should use the 16584c66da4SAndy Fiddaman.Nm 16684c66da4SAndy Fiddamancommand. 16784c66da4SAndy Fiddaman.Pp 16884c66da4SAndy FiddamanTo determine the operating system name and release level, use 16984c66da4SAndy Fiddaman.Nm Fl sr . 17084c66da4SAndy FiddamanTo determine only the operating system release level, use 17184c66da4SAndy Fiddaman.Nm Fl r . 17284c66da4SAndy FiddamanNotice that operating system release levels are not guaranteed to be in 17384c66da4SAndy Fiddaman.Em x.y 17484c66da4SAndy Fiddamanformat (such as 5.3, 5.4, 5.5, and so forth); but could be in the 17584c66da4SAndy Fiddaman.Em x.y.z 17684c66da4SAndy Fiddamanformat (such as 5.5.1). 17784c66da4SAndy Fiddaman.Pp 17884c66da4SAndy FiddamanIn SunOS 4.x releases, the 17984c66da4SAndy Fiddaman.Xr arch 1 18084c66da4SAndy Fiddamancommand was often used to obtain information similar to that obtained by using 18184c66da4SAndy Fiddamanthe 18284c66da4SAndy Fiddaman.Nm 18384c66da4SAndy Fiddamancommand. 18484c66da4SAndy FiddamanThe 18584c66da4SAndy Fiddaman.Xr arch 1 18684c66da4SAndy Fiddamancommand output 18784c66da4SAndy Fiddaman.Ql sun4 18884c66da4SAndy Fiddamanwas often incorrectly interpreted to signify a SunOS SPARC system. 18984c66da4SAndy FiddamanIf hardware platform information is desired, use 19084c66da4SAndy Fiddaman.Nm Fl sp . 19184c66da4SAndy Fiddaman.Pp 19284c66da4SAndy FiddamanThe 19384c66da4SAndy Fiddaman.Nm arch Fl k 19484c66da4SAndy Fiddamanand 19584c66da4SAndy Fiddaman.Nm Fl m 19684c66da4SAndy Fiddamancommands return equivalent values; however, the use of either of these commands 19784c66da4SAndy Fiddamanby third party programs is discouraged, as is the use of the 19884c66da4SAndy Fiddaman.Nm arch 19984c66da4SAndy Fiddamancommand in general. 20084c66da4SAndy FiddamanTo determine the machine's Instruction Set Architecture (ISA or processor type), 20184c66da4SAndy Fiddamanuse 20284c66da4SAndy Fiddaman.Nm 20384c66da4SAndy Fiddamanwith the 20484c66da4SAndy Fiddaman.Fl p 20584c66da4SAndy Fiddamanoption. 206