**1.查看Linux系统的release版本**命令1:lsb_release-a该命令适用于所有Linux系统,会显示完整的版本信息,包括Linux系统的名称,如Debian、Ubuntu、CentOS等,以及对应的版本号,以及版本代号,例如在Debian8中,会显示代号jessie。$lsb_release-a``没有可用的LSB模块。``DistributorID:Debian``Description:DebianGNU``/Linux``8.0(jessie)``Release:8.0``Codename:jessieCommand2:cat/etc/issue此命令适用于所有Linux系统,并且显示的版本信息比较简单,只有系统名称和对应的版本号。$``cat``/etc/issue``DebianGNU``/Linux``8\n\1命令3:cat/etc/redhat-release该命令只适用于Redhat系列的Linux系统,以及显示的版本信息也比较简短。$``cat``/etc/redhat-release``CentOSrelease6.0(Final)**其次,查看Linux内核版本**命令1:uname-a$``uname``-a``LinuxCodeBelief3.16.0-4-amd64``#1SMPDebian3.16.7-ckt9-3~deb8ul(2015-04-24)x86_64GNU/Linux命令2:cat/proc/version$``cat``/proc/version``Linux版本3.16.0-4-amd64(debian-kernel@lists.debian.org)(gcc版本4.8.4(Debian4.8.4-1))``#1SMPDebian3.16.7-ckt9-3~deb8ul(2.15-04-24)以上是常用的查询Linux系统版本的命令,希望对大家有所帮助。
