previous contents up next

Unix for Advanced Users

7. Viewing System Information

7.1.2 What is my OS version? uname

The uname utility prints information about the current system on the standard output. If no options are specified, uname prints only the current operating system's name. To specify all options the flag is -a. On an HP workstation uname -a yields

HP-UX harpo B.10.20 A 9000/782 2010181901 two-user license

In order this tells us:

the operating system name -s
the hostname -n
the release and version of the operating system -r -v
the machine hardware and model names -m
the machine identification number -i
the license level of the operating system -l

These options will vary from system to system. To get the full story on your system, type man uname.

previous contents up next