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.
-adisplays all fields (equivalent to -mnrsv).
-mdisplays the CPU or machine type.
-ndisplays the node name of this particular machine. The node name usually differentiates machines running at one location.
-rdisplays the release (major version) number of the operating system.
-sdisplays 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 |
-vdisplays 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`$ "
0Successful completion.
1Failure due to an inability to find the desired information.
2Failure 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