According to the question \" How to get Linux distribution name and version? \", to get the linux distro name and version, this works:
lsb_release -a
There are files named /etc/version and /etc/release which have information like whether you're using Ubuntu or Fedora, etc. (which is what the OP clarified his question to be).