摘要:如何查看Linux操作系统版本?1. 查看内核版本命令:$cat/proc/version Linuxversion2.6.32-358.el6.x86_64(mockbuild@c6b8.bsys.dev.centos.org)(gccversion4.4.720120313(RedH
如何查看Linux操作系统版本?1. 查看内核版本命令:
$cat/proc/version Linuxversion2.6.32-358.el6.x86_64(mockbuild@c6b8.bsys.dev.centos.org)(gccversion4.4.720120313(RedHat4.4.7-3)(GCC))#1SMPFriFeb2200:31:26UTC2013 $uname-a Linux192.168.1.102.6.32-358.el6.x86_64#1SMPFriFeb2200:31:26UTC2013x86_64x86_64x86_64GNU/Linux $uname-r 2.6.32-358.el6.x86_642. 查看Linux版本:1) 执行 lsb_release -a ,即可列出所有版本信息,例如:
$lsb_release-a LSBVersion:core-2.0-noarch:core-3.0-noarch:core-2.0-ia32:core-3.0-ia32:graphics-2.0-ia32:graphics-2.0-noarch:graphics-3.0-ia32:graphics-3.0-noarch DistributorID:SUSELINUX Description:SUSELINUXEnterpriseServer9(i586) Release:9 Codename:n/a注:这个命令适用于所有的linux,包括Redhat、SuSE、Debian等发行版。2) 执行cat /etc/issue,例如如下:
$cat/etc/issue WelcometoSUSELINUXEnterpriseServer9(i586)-Kernel\\r(\\l).3) 执行cat /etc/redhat-release ,例如如下:
$cat/etc/*release* CentOSrelease6.4(Final) CentOSrelease6.4(Final) CentOSrelease6.4(Final) cpe:/o:centos:linux:6:GA相关文章推荐
虚拟主机的专业参数,分别都是什么意思?2022-09-09
中非域名注册规则是怎样的?注册域名有什么用处? 2022-01-10
HostEase新年活动促销 美国/香港主机全场低至五折2021-12-28
HostGator下载完整备份教程分享2021-12-28
Flink中有界数据与无界数据的示例分析2021-12-28