Determine release (distribution) information

To get release information about your Linux distribution, look for a file in the /etc directory that contains "release" in it's name. On a Gentoo system, this is called /etc/gentoo-release. Redhat will be something like redhat-release.

localhost ~ # ls /etc/*release*
/etc/gentoo-release
localhost ~ # more /etc/gentoo-release 
Gentoo Base System version 1.6.13
localhost ~ # ls /etc/*release*
/etc/gentoo-release
localhost ~ # cat /etc/gentoo-release
Gentoo Base System version 1.6.13   
   

Novell have written a good article about it: Detecting Underlying Linux Distro.

Last modified: 25/04/2006 (most likely earlier as a site migration in 2006 reset some dates) Tags:

This website is a personal resource. Nothing here is guaranteed correct or complete, so use at your own risk and try not to delete the Internet. -Stephan

Site Info

Privacy policy

Go to top