码迷,mamicode.com
首页 > 系统相关 > 详细

查看linux系统版本

时间:2016-01-25 17:02:01      阅读:210      评论:0      收藏:0      [点我收藏+]

标签:

1.查看内核版本

  • cat /proc/version
  • [xingxing.dxx@30_28_6_20 ~]$ cat /proc/version
    Linux version 2.6.32-573.7.1.el6.x86_64 (mockbuild@c6b8.bsys.dev.centos.org) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-16) (GCC) ) #1 SMP Tue Sep 22 22:00:00 UTC 2015
  • uname  -r
  • [xingxing.dxx@30_28_6_20 ~]$ uname -r
    2.6.32-573.7.1.el6.x86_64
  • uname -a
  • [xingxing.dxx@30_28_6_20 ~]$ uname -a
    Linux 30_28_6_20 2.6.32-573.7.1.el6.x86_64 #1 SMP Tue Sep 22 22:00:00 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

     

2.查看操作系统版本

  • lsb_release -a
  • [xingxing.dxx@30_28_6_20 ~]$ lsb_release -a
    LSB Version:    :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
    Distributor ID: CentOS
    Description:    CentOS release 6.7 (Final)
    Release:        6.7
    Codename:       Final
  • cat /etc/issue
  • [xingxing.dxx@30_28_6_20 ~]$ cat /etc/issue
    CentOS release 6.7 (Final)
    Kernel \r on an \m

     

 

查看linux系统版本

标签:

原文地址:http://www.cnblogs.com/duanxingxing/p/5157713.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!