zoukankan      html  css  js  c++  java
  • 【OS_Linux】查看Linux系统版本的命令

    查看Linux系统版本的命令(3种方法):

    1、lsb_release -a,即可列出所有版本信息:

    [root@S-CentOS ~]# 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.5 (Final)

    Release: 6.5

    Codename: Final

    这个命令适用于所有的Linux发行版,包括RedHat、SUSE、Debian…等发行版。

    2、cat /etc/redhat-release,这种方法只适合Redhat系的Linux:

     [root@S-CentOS home]# cat /etc/redhat-release

    CentOS release 6.5 (Final)

    3、cat /etc/issue,此命令也适用于所有的Linux发行版。

    [root@S-CentOS home]# cat /etc/issue

    CentOS release 6.5 (Final)

    Kernel on an m

    参考博文:查看Linux系统版本

  • 相关阅读:
    单例模式
    collections额外数据类型
    logging的简单使用
    杂记
    字符编码
    面向对象编程简介
    logging模块
    re与subprocess模块
    oepnpyxl模块 与excle交互
    json序列化模块
  • 原文地址:https://www.cnblogs.com/leiblog/p/13425583.html
Copyright © 2011-2022 走看看