zoukankan      html  css  js  c++  java
  • linux查看 内核&系统

    -----------------------查看linux操作系统的内核版本-----------------------
    第一种方法:
    [root@slave ~]# uname -a
    Linux slave 3.10.0-514.26.2.el7.x86_64 #1 SMP Tue Jul 4 15:04:05 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
    第二种方法:
    [root@slave ~]# cat /proc/version
    Linux version 3.10.0-514.26.2.el7.x86_64 (builder@kbuilder.dev.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-11) (GCC) ) #1 SMP Tue Jul 4 15:04:05 UTC 2017
    这里可以看出内核版本是3.10.0   64位操作系统
    发行版本是红帽4.8.5
    后面是系统装机的时间2017年7月4号 周二 15:04:05
     
    ----------------查看linux操作系统的版本---------------------------------
    第一种:(我的是centos 7.2 x64  这种方法适用于所有的linux发行版本 )
    [root@slave ~]# lsb_release -a
    -bash: lsb_release: command not found
    #命令没装,yum一下

    [root@slave ~]# yum install -y redhat-lsb

    [root@slave ~]# lsb_release -a
    LSB Version: :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch
    Distributor ID: CentOS
    Description: CentOS Linux release 7.2.1511 (Core)
    Release: 7.2.1511
    Codename: Core

    第二种:(适合红帽系的发行版本 )
    [root@slave ~]# cat /etc/redhat-release
    CentOS Linux release 7.2.1511 (Core)
    第三种:(适用所有的linux发行版本 ,但是对我有点不适用)
    [root@slave ~]# cat /etc/issue
    S
    Kernel 
     on an m
  • 相关阅读:
    python并发之concurrent.futures
    全局解释器锁--GIL
    ASP 注释
    ASPxGridView 下拉框不让输入
    leftjoin及多个leftjoin执行顺序
    视图view没有主键,但可以添加唯一索引
    ASPxGridView KeyFieldName
    联合主键
    AspxGridView使用教程
    ASP Session 对象
  • 原文地址:https://www.cnblogs.com/Kid-Zhou/p/8566002.html
Copyright © 2011-2022 走看看