カーネルのバージョンを調べる
$ cat /proc/version
Linux version 2.6.32-33-generic-pae (buildd@zirconium) (gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) ) #72-Ubuntu SMP Fri Jul 29 22:06:29 UTC 2011
$ uname -a
Linux pcname 2.6.32-33-generic-pae #72-Ubuntu SMP Fri Jul 29 22:06:29 UTC 2011 i686 GNU/Linux
Debian GNU/Linux
$ cat /etc/debian_version
4.0
Ubuntu
$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=8.04
DISTRIB_CODENAME=hardy
DISTRIB_DESCRIPTION="Ubuntu 8.04.1"
CentOS / RedHat Enterprise Linux
$ cat /etc/redhat-release
CentOS release 5.2 (Final)
Fedora
$ cat /etc/fedora-release
Fedora release 9 (Sulphur)
SUSE Linux
$ cat /etc/SuSE-release
SUSE Linux Enterprise Server 10 (x86_64)
VERSION=10
PATCHLEVEL=1