I’m sure you’ve been asking yourself such questions while you arrived in front of an unknowed environment: Which distribution is it ? What kernel does it use ?
Here after some commands to answer thoses questions.
[me@nowin ~]$ cat /etc/*-release
[me@nowin ~]$ lsb_release -a | grep "Description:"
[me@nowin ~]$ uname -prosi
Tested on Debian Squeeze and Fedora 14.