Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ uname(1) — Digital UNIX 4.0d

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

Functions:  uname(2)

Standards:  standards(5)

uname(1)  —  Commands

NAME

uname − Displays information about the operating system

SYNOPSIS

uname [-amnrsv]

uname [-S system-name]

The uname command displays system information or sets the system name. 

STANDARDS

Interfaces documented on this reference page conform to industry standards as follows:

uname:  XPG4, XPG4−UNIX

Refer to the standards(5) reference page for more information about industry standards and associated tags. 

FLAGS

-aDisplays all information specified with the -m, -n, -r, -s, and -v flags. 

-mDisplays the type of hardware running the system. 

-nDisplays the name of the node (this may be a name that the system is known by to a communications network). 

-p[Digital]  Displays the processor type of the current host. 

-rDisplays the release number of the operating system. 

-sDisplays the name of the implementation of the operating system. (This option is on by default.) 

-S system-name
[Digital]  Changes the name of the system to system_name.  The system_name argument is restricted to SYS_NMLN characters.  The value of SYS_NMLN is implementation specific and is defined in /usr/include/sys/utsname.h.  Only users with appropriate privileges can use this flag. 

-vDisplays the operating system version. 

PARAMETERS

None

DESCRIPTION

The uname command writes system information to standard output.  This command is used primarily to determine which system you are using.  The flags cause selected information returned by the uname() call to be displayed. 

ENVIRONMENT VARIABLES

The following environment variables affect the execution of uname:

LANGProvides a default value for the internationalization variables that are unset or null. If LANG is unset or null, the corresponding value from the default locale is used. If any of the internationalization variables contain an invalid setting, the utility behaves as if none of the variables had been defined. 

LC_ALLIf set to a non-empty string value, overrides the values of all the other internationalization variables. 

LC_CTYPEDetermines the locale for the interpretation of sequences of bytes of text data as characters (for example, single-byte as opposed to multibyte characters in arguments). 

LC_MESSAGESDetermines the locale for the format and contents of diagnostic messages written to standard error. 

NLSPATHDetermines the location of message catalogues for the processing of LC_MESSAGES. 

NOTES

     1.When the -a flag is used, output is displayed in the order:

<system> <node> <release> <version> <hardware>

When you request information by specifying the individual flags, the appropriate information is displayed in the order indicated. 

[Digital]  If the -p flag is used, processor information is appended to the output line. 

     2.The output of uname may include embedded blank spaces, so you should use caution when passing the output to parsing algorithms. 

EXAMPLES

To display the complete system name and version banner, enter:

uname -a

EXIT VALUES

The following exit values are returned:

0The requested information has been successfully written. 

>0An error occurred

FILES

/usr/include/sys/utsname.h
System name information header file.

RELATED INFORMATION

Functions:  uname(2)

Standards:  standards(5)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026