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
How do i find out which Fedora version I’m running from the cli (not uname -a)
unixunix-shell
unixunix-shell
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
Best Answer
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.