Linux 查看系统、内核版本命令

一、查看系统版本

1、lsb_release -a

若出现-bash: lsb_release: command not found问题,在本地yum源安装指令:yum install redhat-lsb -y  

这个命令适用于所有的Linux发行版,包括Redhat、SuSE、Debian…等发行版。

2、cat /etc/redhat-release

该方法只适合Redhat系的Linux系统

3、cat /etc/issue

此命令也适用于所有的Linux发行版。

二、查看内核版本

1、uname -a

2、cat /proc/version

猜你喜欢

转载自blog.csdn.net/qq_21840201/article/details/80759802
今日推荐