查看Linux内核版本和系统版本信息
一、查看Linux内核版本命令(2种方法)
1、
2、uname -a
二、查看Linux系统版本的命令(3种方法)
1、lsb_release -a
测试后发现这个命令适用于Centos、Ubuntu。在redhat中没有这个命令。
2、cat /etc/redhat-release,这种方法只适合Redhat系的Linux
3、 cat /etc/issue ,Centos、Redhat通用
一、查看Linux内核版本命令(2种方法)
1、
2、uname -a
二、查看Linux系统版本的命令(3种方法)
1、lsb_release -a
测试后发现这个命令适用于Centos、Ubuntu。在redhat中没有这个命令。
2、cat /etc/redhat-release,这种方法只适合Redhat系的Linux
3、 cat /etc/issue ,Centos、Redhat通用