Find: UNIX Operating System Release and Version Number

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

🐧 Get the latest tutorials on Linux, Open Source & DevOps via RSS feed or Weekly email newsletter.

🐧 1 comment so far... add one

CategoryList of Unix and Linux commands
Disk space analyzersdf ncdu pydf
File Managementcat cp mkdir tree
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network UtilitiesNetHogs dig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
1 comment… add one
  • bitlord Dec 28, 2012 @ 17:18

    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
    cat /etc/release
    Solaris 10 10/09 s10s_u08a SPARC
    uname -a
    SunOS servername 5.10 Generic_147440-25 sun4v sparc sun4v

    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.

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre> for code samples. Still have questions? Post it on our forum