Possible Duplicate:
How can I get distribution name and version number in a simple shell script?
Given a shell, how can I identify the variant of Unix/Linux that is running on a remote server?
Possible Duplicate:
How can I get distribution name and version number in a simple shell script?
Given a shell, how can I identify the variant of Unix/Linux that is running on a remote server?
you can also do cat /etc/*-release to see info about the distribution version and name.
$ cat /etc/*-release
DISTRIB_ID=LinuxMint
DISTRIB_RELEASE=12
DISTRIB_CODENAME=lisa
DISTRIB_DESCRIPTION="Linux Mint 12 Lisa"
Source: linuxg.net
You can try :
cat /etc/issue
Maybe not all distro have this file.