# cat /etc/debian_version5.0.7# cat /etc/issueDebian GNU/Linux 5.0 \n \lUbuntu版本查询:
# cat /etc/lsb-releaseDISTRIB_ID=UbuntuDISTRIB_RELEASE=10.04DISTRIB_CODENAME=lucidDISTRIB_DESCRIPTION="Ubuntu 10.04.4 LTS"# cat /etc/issueUbuntu 10.04.4 LTS \n \lCentOS版本查询:
# cat /etc/*-releaseCentOS release 6.4 (Final)CentOS release 6.4 (Final)CentOS release 6.4 (Final)RedHat版本查询:
# cat /etc/redhat-releaseRed Hat Enterprise Linux Server release 6.0 (Santiago)Fedora版本查询:
$ cat /etc/fedora-releaseFedora release 14 (Laughlin)OpenSuSE版本查询:
$ cat /etc/SuSE-releaseopenSUSE 12.1 (x86_64)VERSION = 12.1CODENAME = Asparagus2. 查询内核版本
# uname -r2.6.32-358.14.1.el6.x86_64# cat /proc/version Linux version 2.6.32-358.14.1.el6.x86_64 (mockbuild@c6b10.bsys.dev.centos.org) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC) ) #1 SMP Tue Jul 16 23:51:20 UTC 2013网站:运维生存时间(转载请注明出处) 网址:http://www.ttlsa.com/linux/query-linux-version-number-command/