zoukankan      html  css  js  c++  java
  • Linux下查看系统版本号信息的方法(转)

    转自:http://www.ha97.com/2987.html

    一、查看Linux内核版本命令(两种方法):

    1、cat /proc/version

    [root@localhost ~]# cat /proc/version
    Linux version 2.6.18-194.8.1.el5.centos.plus (mockbuild@builder17.centos.org) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)) #1 SMP Wed Jul 7 11:50:45 EDT 2010

    2、uname -a

    [root@localhost ~]# uname -a
    Linux localhost.localdomain 2.6.18-194.8.1.el5.centos.plus #1 SMP Wed Jul 7 11:50:45 EDT 2010 i686 i686 i386 GNU/Linux

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

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

    [root@localhost ~]# lsb_release -a
    LSB Version: :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
    Distributor ID: CentOS
    Description: CentOS release 5.5 (Final)
    Release: 5.5
    Codename: Final

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

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

    [root@localhost ~]# cat /etc/redhat-release
    CentOS release 5.5 (Final)

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

    [root@localhost ~]# cat /etc/issue
    CentOS release 5.5 (Final)
    Kernel r on an m

  • 相关阅读:
    RequestMapping_PathVariable注解
    RequestMapping_Ant 路径
    RequestMapping_请求参数&请求头
    RequestMapping_请求方式
    RequestMapping注解_修饰类
    18)C++对C的增强
    17)C++开始--命名空间
    16)未理解透
    15)文件函数例子
    14)文件操作
  • 原文地址:https://www.cnblogs.com/goodhacker/p/3237739.html
Copyright © 2011-2022 走看看