uname - Displays information about the operating system
uname [-S system-name]
command displays system information or
sets the system name.
Interfaces documented on this reference page conform to industry standards as follows:
uname: XPG4, XPG4-UNIX
Refer to the
reference page for more information
about industry standards and associated tags.
Displays all information specified with the
Displays the type of hardware running the system.
Displays the name of the node (this may be a name that the
system is known by to a communications network).
[Compaq] Displays the processor type of the current host.
Displays the release number of the operating system.
Displays the name of the implementation of the operating system.
(This option is on by default.)
[Compaq] Changes the name of the system to
is restricted to
characters. The value of
is implementation specific and is defined in
/usr/include/sys/utsname.h. Only users with appropriate privileges
can use this option.
Displays the operating system version.
command writes system information
to standard output. This command is used primarily to determine which system
you are using. The options cause selected information returned by the
call to be displayed.
When the -a option is used, output is displayed in the order:
The following exit values are returned:
The requested information has been successfully written.
An error occurred.
To display the complete system name and version banner, enter: uname -a
The following environment variables affect the execution of
Provides a default value for the internationalization variables
that are unset or null. If
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.
If set to a non-empty string value, overrides the values of
all the other internationalization variables.
Determines 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).
Determines the locale for the format and contents of diagnostic
messages written to standard error.
Determines the location of message catalogues for the processing
System name information header file.