Get the Version of Solaris Running
Getting the exact version of the Solaris operating system running on your system can be useful, especially if you are connected to a remote server.
uname -r
The uname command can be used to get system information. In this case we are going to use the -r command to get release information.
Example:
# uname -r
5.10
This article was originally written on 12/1/06

Daily Email Updates
You can get our how-to articles in your inbox each day for free. Just enter your name and email below:


Checking /etc/release will give you a bit more info as well … not great for scripting but has more verbose information if required.
# cat /etc/release
Solaris 10 8/07 s10s_u4wos_12b SPARC
Copyright 2007 Sun Microsystems, Inc. All Rights Reserved.
Use is subject to license terms.
Assembled 16 August 2007