Showing posts with label distribution. Show all posts
Showing posts with label distribution. Show all posts

Nov 16, 2011

How to check Linux distribution version

Do you know how to check Linux distribution version by a shell command?

In Linux, the most common command to show current version is "uname-r" to check the kernel version:

[jackieyeh@dhcppc15 ~]$ uname -r
2.6.18-6-686
[jackieyeh@dhcppc15 ~]$

What if you'd like to know the distribution version in stead of kernel version?

Since there are some many "flavors" in Linux, the Linux version is distinguished not only by kernel version, but also distribution versions, like Fedora, Debian, Ubuntu, etc...

Here is the summary of the ways to get the distribution version. Although different distributions may have slight difference, luckily you can get the answers with couple trials.