一、查看Linux内核版本信息
1、cat /proc/version
2、uname -a
二、查看Linux系统版本信息
1、lsb_release -a,即可列出所有版本信息:
这个命令适用于所有的Linux发行版,包括RedHat、Debian…等发行版。
2、cat /etc/redhat-release,这种方法只适合Redhat系的Linux:
3、cat /etc/issue,此命令也适用于所有的Linux发行版。
问题:
lsb_release -a命令提示:lsb_release -a bash: lsb_release: command not found
需要先安装lsb_release,然后再用lsb_release -a 查看版本信息
安装lsb_release命令:yum install redhat-lsb