Find the Linux Distribution and Version

by damonp on January 12, 2006

Gives hostname, kernel version and some distro/version info:

uname -a
[root@core root]# uname -a
Linux core.domain.com 2.4.21-32.0.1.ELsmp #1 SMP Wed May 25 14:26:33 EDT 2005 i686 i686 i386 GNU/Linux

Gives distro release name for most Redhat based distros (RH, RHEL, CentOS, Fedora):

cat /etc/redhat-release
[root@core root]# cat /etc/redhat-release
CentOS release 3.4 (final)

Popularity: unranked [?]

Leave a Comment

Previous post:

Next post: