Linux 查看Linux版本
阅读(2765)方法1
cat /etc/SuSE-release
结果示例:
openSUSE 13.1 (x86_64)
VERSION = 13.1
CODENAME = Bottle
方法2
lsb_release -a
结果示例:
LSB Version: n/a
Distributor ID: openSUSE project
Description: openSUSE 13.1 (Bottle) (x86_64)
Release: 13.1
Codename: Bottle
方法3
uname -a
结果示例:
Linux iZ94odaalp3Z 3.11.10-17-default #1 SMP Mon Jun 16 15:28:13 UTC 2014 (fba7c1f) x86_64 x86_64 x86_64 GNU/Linux
方法4
cat /proc/version
结果示例:
Linux version 2.6.13-15-smp (geeko@buildhost) (gcc version 4.0.2 20050901 (prerelease) (SUSE Linux)) #1 SMP Tue Sep 13 14:56:15 UTC 2005
方法5
cat /etc/redhat-release