您的位置:首页 > 运维架构 > Linux

Linux系统如何查看版本信息

2018-01-09 00:00 591 查看
输入"uname -a ",可显示电脑以及操作系统的相关信息。

输入"cat /proc/version",说明正在运行的内核版本。

输入"cat /etc/issue", 显示的是发行版本信息

lsb_release -a (适用于所有的linux,包括Redhat、SuSE、Debian等发行版,但是在debian下要安装lsb)

方法一:/etc/issue

RHEL6.4
# cat /etc/issue
Red Hat Enterprise Linux Server release 6.4 (Santiago)
SLES11
# cat /etc/issue
Welcome to SUSE Linux Enterprise Server 11 SP3 (x86_64)
CentOS6.3
# cat /etc/issue
CentOS release 6.3 (Final)

方法二:查看 /etc/*release*

虽然每种操作系统的文件有些不同,但是cat /etc/*release* 总是能得到所需的结果。
RHEL:redhat-release
# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.4 (Santiago)
SLES:SuSE-release
# cat /etc/SuSE-release
SUSE Linux Enterprise Server 11 (x86_64)
VERSION = 11
PATCHLEVEL = 3
CentOS6:centos-release
# cat /etc/centos-release
CentOS release 6.3 (Final)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  Linux