What Version of Linux am I Running?

I sometimes work on client's servers where the installed distribution and version of Linux are unknown at first. How do you find out which version of Linux is installed? Well, each distribution is different, so it may be necessary to try all of the following.

Determine the Installed Version of Redhat-based Systems


cat /etc/redhat-release

Determine the Installed Version of Debian


cat /etc/debian_version

Determine the Installed Version of Ubuntu


cat /etc/issue

or


cat /etc/lsb-release

Determine the Version of the Linux Kernel


uname -a

You can also use "uname -a"

You can also use "uname -a" which should work on all distributions.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Lines and paragraphs break automatically.

More information about formatting options