SYNOPSIS
uname
[
DESCRIPTION
The uname command lets shell scripts and other programs determine configuration information about the machine upon which the KornShell is running.
You can use the major and minor version numbers, returned by the
Major Minor
Windows 95 4 00
Windows 98 4 10
Windows ME 4 90
Windows NT 4 00
Windows 2000 5 00
Windows XP 5 01
Windows 2003 5 02
Options
-a -
displays all fields (equivalent to
-mnrsv ). -m -
displays the CPU or machine type. Possible values include:
386 Intel 386 486 Intel 486 586 Intel Pentium 2200 Intel IA64 8664 x64 (AMD64/EM64T)
-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/2000/XP Windows_NT Windows 95 Windows_95 Windows 98 Windows_98 Windows Me Windows_ME -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. UNIX System V. Windows 2000. Windows XP. Windows Server 2003. Windows Vista.
NOTE
uname is provided as both an external utility and as a built-in MKS KornShell utility.
AVAILABILITY
MKS Toolkit for Power Users
MKS Toolkit for System Administrators
MKS Toolkit for Developers
MKS Toolkit for Interoperability
MKS Toolkit for Professional Developers
MKS Toolkit for Enterprise Developers
MKS Toolkit for Enterprise Developers 64-Bit Edition
MKS Toolkit 9.2 Documentation Build 16.