What’s the likelihood of you not knowing which version of Linux distro you are running? It’s probably a lot higher than you expect. I’ve had to do this at least twice before. If you’re not sure or you simply want to validate your distro, you can run the following commands to get the distro info.
Ubuntu
$ cat /etc/lsb-release
Fedora
$ cat /etc/fedora-release
Debian
$ cat /etc/*release
OpenSuse
$ cat /etc/SuSE-release
In Ubuntu, running the command above returns the following info.
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.04
DISTRIB_CODENAME=lucid
DISTRIB_DESCRIPTION=”Ubuntu 10.04.3 LTS”