uname

display system name information

Command


SYNOPSIS

uname [-amnrsv]


DESCRIPTION

The uname command lets shell scripts and other programs determine configuration information about the machine upon which the KornShell is running.

Options

-a

displays all fields (equivalent to -mnrsv).

-m

displays the CPU or machine type.

-n

displays the node name of this particular machine. The node name usually differentiates machines running at one location.

-r

displays the release (major version) number of the operating system.

-s

displays the name of the operating system. This is the default output, when no options are given. Operating system names are as follows:

Operating System Name
Windows NT Windows_NT
MPE/iX HP3000 MPE
-v

displays the version (minor version) number of the operating system.

uname displays the selected information in the following order:
<system name>   <nodename>   <release>     <version>     <machine>

EXAMPLES

This shell command changes the prompt to identify the computer location.
export PS1="`uname -n`$ "

DIAGNOSTICS

Possible exit status values are:
0

Successful completion.

1

Failure due to an inability to find the desired information.

2

Failure due to an invalid command line option.


PORTABILITY

POSIX.2. x/OPEN Portability Guide 4.0.


NOTE

uname is provided as both an external utility and as a built-in MKS KornShell utility.


SEE ALSO

Commands:
getconf

Miscellaneous:
envvar


Updated MKS Toolkit [3khat16.ico]HP3000 [3khat16.ico]3kMail [archive16.gif]