tags:

views:

1471

answers:

6
sudo find /etc | xargs grep -i fedora > searchFedora

gives:

/etc/netplug.d/netplug: # At least on Fedora Core 1
...

But see the Fedora version in the /etc/netplug.d/netplug file. Is it serious?

+10  A: 
cat /etc/issue
David Grant
Thanks, Indeed is a Red Hat Enterprise Linux AS release 4 (Nahant Update 5)
TaintedLove
A: 

What about uname -a ?

mouviciel
That gives the version of the Linux kernel, which might be from a different version of FC or RHEL. It's debatable if the OS remains that reported by /etc/issue if you change the kernel, but there you are. :)
David Grant
uname -a does not give the distrib but kernel, network, machine, processor, hardware and GNU/Linux for operating system! That is not enough.
TaintedLove
+2  A: 

You can also try /etc/redhat-release

cat /etc/fedora-release Fedora release 7 (Moonshine)

Bruce ONeel
+2  A: 

You could try

lsb_release -a

which works on at least Debian and Ubuntu (and since it's LSB, it should surely be on most of the other mainstream distros at least). http://rpmfind.net/linux/RPM/sourceforge/l/ls/lsb/lsb_release-1.0-1.i386.html suggests it's been around quite a while.

stephen mulcahy
A: 

uname -a works with my fc11

A: 

[Belmiro@HP-550 ~]$ uname -a

Linux HP-550 2.6.30.10-105.2.23.fc11.x86_64 #1 SMP Thu Feb 11 07:06:34 UTC 2010 x86_64 x86_64 x86_64 GNU/Linux

[Belmiro@HP-550 ~]$ lsb_release -a

LSB Version: :core-3.1-amd64:core-3.1-noarch:core-3.2-amd64:core-3.2-noarch:desktop-3.1-amd64:desktop-3.1-noarch:desktop-3.2-amd64:desktop-3.2-noarch Distributor ID: Fedora Description: Fedora release 11 (Leonidas) Release: 11 Codename: Leonidas [Belmiro@HP-550 ~]$

Belmiro