一、查看Linux内核版本命令(2种方法):
1、cat /proc/version
Linux version 3.10.0_1-0-0-8 (root@xxx) (gcc version 4.8.2 20140120 (Red Hat 4.8.2-16) (GCC) ) #1 SMP Thu Oct 29 13:04:32 CST 2015
2、uname -a
Linux xxx 3.10.0_1-0-0-8 #1 SMP Thu Oct 29 13:04:32 CST 2015 x86_64 x86_64 x86_64 GNU/Linux
二、查看Linux系统版本的命令(2种方法):
1、lsb_release -a
LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: CentOS
Description: CentOS release 6.3 (Final)
Release: 6.3
Codename: Final
2、cat /etc/issue
CentOS release 6.3 (Final)
Kernel
on an m
本文参考自:
http://www.linuxidc.com/Linux/2016-05/131749.htm