查看linux系统版本

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了查看linux系统版本相关的知识,希望对你有一定的参考价值。

1.查看内核版本

  • cat /proc/version
  • [[email protected]_28_6_20 ~]$ cat /proc/version
    Linux version 2.6.32-573.7.1.el6.x86_64 ([email protected]) (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
  • [[email protected]_28_6_20 ~]$ uname -r
    2.6.32-573.7.1.el6.x86_64
  • uname -a
  • [[email protected]_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
  • [[email protected]_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
  • [[email protected]_28_6_20 ~]$ cat /etc/issue
    CentOS release 6.7 (Final)
    Kernel \r on an \m

     

 

以上是关于查看linux系统版本的主要内容,如果未能解决你的问题,请参考以下文章

mysql查看版本的四种方法

Android 逆向Linux 文件权限 ( Linux 权限简介 | 系统权限 | 用户权限 | 匿名用户权限 | 读 | 写 | 执行 | 更改组 | 更改用户 | 粘滞 )(代码片段

如何查看当前Ubuntu系统的版本

linux查看系统类型和版本

如何linux 查看软件包版本

[Linux命令]查看Linux系统相关命令