uname

NAME

uname - display information about the system

SYNOPSIS

uname [-aHmnpPrsUvxX]

DESCRIPTION

The uname(1) command writes the name of the operating system implementation to standard output. When options are specified, strings representing one or more system characteristics are written to standard output.

The options are as follows:

-a
Behave as though the options -m, -n, p, -r, -s, and -v were specified. For example, uname -a produces the output:
Interix James 3.0 SP-6.0.1069 x86 Intel_x86_Family6_Model7_Stepping2
for a computer named James, running the Interix subsystem release 3.0, version SP-6.0.1069, on a Pentium III platform.
-H
Write host operating system information. For example, uname -aH produces the output:
Windows james 5.0 SP0 x86 Intel_x86_Family6_Model7_Stepping2
for a computer named james, running Windows 2000 release 5.0, version SP0, on a Pentium III platform.
-m
Write a generic simple computer-type name. In this version, only x86 is supported. For a description of the exact processor, use -p.
-n
Write the name of the system to standard output.
-p
Write the type of the current hardware platform to standard output.
-r
Write the current release level of the Interix subsystem to standard output. For example, on a computer running Interix subsystem release 3.0, this is "3.0". When specified with the -H option, write the current release of the host operating system. For example, on a computer running Windows 2000 (release 5.0), this is "5.0".
-s
Write the name of the operating system implementation to standard output. On an Interix system, this is "Interix". When specified with the -H option, write the name of the host operating system. On an Interix system, this is "Windows".
-U
Print information based on the UNIX operating environment.
-v
Write the Interix version and build number. If the -H option is specified, write the service-pack level of the host operating system to standard output. This is the service pack number applied to the Windows operating system. If no service pack has been applied, it is SP0.
-x
Print command usage.
-X
Print expanded system information.

If the -a flag is specified, or multiple flags are specified, all output is written on a single line, separated by spaces.

DIAGNOSTICS

The uname(1) utility exits 0 on success, and >0 if an error occurs.