unamedisplay system name information |
Command |
uname
[-amnrsv
]
uname
command lets shell scripts and other programs
determine configuration information about the machine upon which the KornShell
is running.
-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>
export PS1="`uname -n`$ "
0
Successful completion.
1
Failure due to an inability to find the desired information.
2
Failure due to an invalid command line option.
uname
is provided as both an external utility and as a
built-in MKS KornShell utility.
getconf
envvar