Check Which Version of Ubuntu You’re Running

If you want to check which version of Ubuntu is installed on a machine run the following command:

lsb_release -a


On Debian the command is:

cat /etc/debian_version


The redhat equivalent, which would work on redhat derivatives as well, is:

cat /etc/redhat-release

By Michele Neylon

Michele is founder and CEO of Irish hosting provider and domain name registrar Blacknight.

One comment

  1. em, lsb_release -a will work on Debian Etch, Centos 4+ and RHEL 4+ 🙂 Make life easier for yourself and just learn the one!!

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Exit mobile version