How to Check Which Version of an Operating System is Installed

There’s a simple built-in command line tool you can utilize to discover the current version of macOS:

sw_vers

The result will look something like this:

$ sw_vers ProductName: Mac OS X ProductVersion: 10.6.4 BuildVersion: 10F569

If you would like to see the OS version, there’s a flag for that:

$ sw_vers -productVersion 10.6.4

macOS GUI

  1. Select the Apple Logo (Menu) in the far left corner of the top panel on the desktop.
  2. Select About this Mac.

Linux (Debian/Ubuntu)

From a Debian Linux-based OS like Ubuntu, two commands will tell you about your system:

uname -a and cat /etc/lsb-release

Here’s what the latter command might output:

$ cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=15.04 DISTRIB_CODENAME=vivid DISTRIB_DESCRIPTION=“Ubuntu 15.04”

MacStadium Customer Dashboard

Another way to verify which operating system is currently running on your dedicated server is to log into your customer dashboard. Once you’ve selected a server you can view the installed operating system on the bottom left alongside its hardware configuration as well as it’s IP address.