标签:redhat 系统版本 cat 内核 hat 内核版本 行号 适合 name
1、查看内核## 通过读取 /proc/version 文件,获取内核版本信息
# cat /proc/version
## 直接通过 uname命令 获取内核信息
# uname -r
## lsb_release 命令查看
## lsb_release -a 查看系统所有信息
## lsb_release -sc 只查看系统版本发行号
# lsb_release -a
# lsb_release -sc
## 读取 /etc/issue 文件,获取系统版本信息,适用于所有的Linux发行版
# cat /etc/issue
## 读取 /etc/redhat-release 文件,获取系统版本信息,只适合Redhat系的Linux
# cat /etc/redhat-release
标签:redhat 系统版本 cat 内核 hat 内核版本 行号 适合 name
原文地址:http://blog.51cto.com/11495268/2313816