Linux系统如何查看版本信息
2018-01-09 00:00
591 查看
输入"uname -a ",可显示电脑以及操作系统的相关信息。
输入"cat /proc/version",说明正在运行的内核版本。
输入"cat /etc/issue", 显示的是发行版本信息
lsb_release -a (适用于所有的linux,包括Redhat、SuSE、Debian等发行版,但是在debian下要安装lsb)
# 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)
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)
输入"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(ubuntu)系统版本信息及CPU信息
- Linux系统如何查看版本信息和内存
- Linux系统如何查看版本信息
- Linux系统如何查看版本信息
- Linux系统如何查看版本信息
- Linux 系统如何查看版本信息
- linux下如何查看内核版本和系统版本信息
- Linux系统如何查看版本信息
- Linux系统如何查看版本信息
- Linux系统如何查看版本信息
- linux如何查看系统信息
- 如何查看Linux的版本信息
- linux如何查看系统信息
- linux如何查看系统信息
- 如何通过终端命令查看 linux 的系统信息
- linux如何查看系统信息
- linux如何查看系统信息
- 查看Linux系统版本信息
- Linux(Ubuntu)系统查看版本及内核信息
- linux如何查看系统信息