How do I find Unix version and release number using command line options? What version, release, and maintenance level of Unix is running on my system?
You can use the following commands to find out information about Unix operating systems.
uname Command
Type the following command:
$ uname -a
Sample outputs:
SunOS solaris 5.11 snv_151a i86pc i386 i86pc Solaris
This command works with Linux, BSD and other Unix like operating systems:
$ uname -a
Sample outputs:
Linux wks01 2.6.32-5-amd64 #1 SMP Tue Jun 14 09:42:28 UTC 2011 x86_64 GNU/Linux
IBM AIX Unix Specific Command
Type the following command
# oslevel -r
You should follow me on twitter here or grab rss feed to keep track of new changes.
Featured Articles:
- 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
- Top 30 Nmap Command Examples For Sys/Network Admins
- 25 PHP Security Best Practices For Sys Admins
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins
- Top 20 OpenSSH Server Best Security Practices
- Top 20 Nginx WebServer Best Security Practices
- 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors
- 15 Greatest Open Source Terminal Applications Of 2012

- My 10 UNIX Command Line Mistakes
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- The Novice Guide To Buying A Linux Laptop












{ 1 comment… read it below or add one }
The uname command is nice, but looking at the release file is needed as well. The release file gives the version of the OS the uname command gives the patch level.
For example
Solaris:
cat /etc/release
Solaris 10 10/09 s10s_u08a SPARC
uname -a
SunOS servername 5.10 Generic_147440-25 sun4v sparc sun4v
RHEL:
cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.8 (Tikanga)
uname -a
Linux servername 2.6.18-308.e15 #1 SMP Fri Jan 27 17:17:51 EST 2012 x86_64 x86_64 x86_64 GNU/Linux
For Suse the release file is /etc/SuSE-release
Anyway I hope this helps.