Zak Asked: 2009-10-06 14:58:10 +0800 CST2009-10-06 14:58:10 +0800 CST 2009-10-06 14:58:10 +0800 CST How do i find out which Fedora version I'm running from the cli (not uname -a)? 772 I want to know if the box is Fedora Core 4 or Redhat 9, or CentOS, etc... not if it has Kernel 2.6.x unix 6 Answers Voted Andy Jones 2009-10-06T15:40:16+08:002009-10-06T15:40:16+08:00 This perhaps? [dummyuser@d400 ~]$ ls -l /etc/system-release lrwxrwxrwx. 1 root root 14 2009-06-04 19:05 /etc/system-release -> fedora-release [dummuser@d400 ~]$ cat /etc/system-release Fedora release 11 (Leonidas) Zoredache 2009-10-06T15:05:02+08:002009-10-06T15:05:02+08:00 Please see: How do I find out what version of Linux is running? How do I find out the distro of a server? Determining type of Linux machine Best Answer David Pashley 2009-10-06T15:09:30+08:002009-10-06T15:09:30+08:00 On modern systems you should be able to look in /etc/lsb-release mojo-jojo david% cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=9.10 DISTRIB_CODENAME=karmic DISTRIB_DESCRIPTION="Ubuntu karmic (development branch)" This should be the LSB mandated way of finding out the distribution across different Linux distributions. You should not rely on /etc/issue, as it is used for the login message, and someone might change it. Zak 2009-10-06T15:20:07+08:002009-10-06T15:20:07+08:00 Even better, and *nixwide: lsb_release -d creftos 2016-02-29T11:39:13+08:002016-02-29T11:39:13+08:00 I had to do cat /etc/fedora-release Zak 2009-10-06T14:58:53+08:002009-10-06T14:58:53+08:00 Ahh answer to my own question.. cat /etc/issue
This perhaps?
[dummyuser@d400 ~]$ ls -l /etc/system-release
lrwxrwxrwx. 1 root root 14 2009-06-04 19:05 /etc/system-release -> fedora-release
[dummuser@d400 ~]$ cat /etc/system-release
Fedora release 11 (Leonidas)
Please see:
On modern systems you should be able to look in /etc/lsb-release
This should be the LSB mandated way of finding out the distribution across different Linux distributions.
You should not rely on /etc/issue, as it is used for the login message, and someone might change it.
Even better, and *nixwide:
I had to do
Ahh answer to my own question..
cat /etc/issue