linux查看系统版本命令

*一、查看Linux系统发行版本 *

命令1:lsb_release -a

该命令适用于所有Linux系统,会显示出完整的版本信息,包括Linux系统的名称,如Debian、Ubuntu、CentOS等,和对应的版本号,以及该版本的代号,例如在Debian 8中将会显示代号jessie。

$ lsb_release -a``No LSB modules are available. ``Distributor ID: Debian ``Description: Debian GNU``/Linux` `8.0 (jessie) ``Release:  8.0 ``Codename:  jessie 

命令2: cat /etc/issue

该命令适用于所有Linux系统,显示的版本信息较为简略,只有系统名称和对应版本号。

$ ``cat` `/etc/issue``Debian GNU``/Linux` `8 \n \1 

命令3: cat /etc/redhat-release

该命令仅适用于Redhat系列的Linux系统,显示的版本信息也较为简略。

$ ``cat` `/etc/redhat-release``CentOS release 6.0 (Final) 

*二、查看Linux内核版本 *

命令1: uname -a

$ ``uname` `-a``Linux CodeBelief 3.16.0-4-amd64 ``#1 SMP Debian 3.16.7-ckt9-3~deb8ul (2015-04-24) x86_64 GNU/Linux 

命令2: cat /proc/version

$ ``cat` `/proc/version``Linux version 3.16.0-4-amd64 (debian-kernel@lists.debian.org) (gcc version 4.8.4 (Debian 4.8.4-1) ) ``#1 SMP Debian 3.16.7-ckt9-3~deb8ul (2.15-04-24)

以上就是用于查询Linux系统版本的常见命令,希望对大家有所帮助。

  • 0
    点赞
  • 14
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值