查看Linux内核版本命令

一、查看Linux内核版本命令(两种方法):
1、cat /proc/version
2、uname -a
 
二、查看Linux系统版本的命令(3种方法):
1、lsb_release -a(需要先安装lsb包,centos执行名命令如下:yum install lsb)
即可列出所版本信息:
这个命令适用于所的Linux发行版,包括Redhat、SuSE、Debian…等发行版。
2、cat /etc/redhat-release
这种方法只适合Redhat系的Linux。
3、cat /etc/issue
此命令也适用于所的Linux发行版。

猜你喜欢

转载自www.cnblogs.com/pigonthetree/p/12410335.html