1、方法一:通过命令cat/etc/redhat-release,主要针对redhat系列,可以通过该命令查看redhat和centos。
2、方法二:可以通过以下方式查看操作系统版本或内核版本。
3、Cat/proc/version#查看版本信息
4、Uname-a#查看版本和内核
5、方法3:lsb_release-a
6、(使用命令时会提示commandnotfound,需要安装yuminstallredhat-lsb-y)
7、方法4:cat/etc/issue
8、这个命令也适用于所有的Linux发行版。
“张承辉博客” linux怎么查看操作系统版本(Linux怎么查看操作系统版本号) https://www.zhangchenghui.com/238847
