年年有"余"

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 2104|回复: 0

[Linux] Linux查看系统版本

[复制链接]
  • TA的每日心情

    2024-10-15 10:05
  • 签到天数: 372 天

    [LV.9]以坛为家II

    发表于 2016-5-24 09:51:21 | 显示全部楼层 |阅读模式
    [root@localhost ~]# cat /proc/version
      Linux version 2.6.18-194.el5 (mockbuild@builder10.centos.org) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)) #1 SMP Fri Apr 2 14:58:14 EDT 2010

    [root@localhost ~]# uname -a
      Linux localhost.localdomain 2.6.18-194.el5 #1 SMP Fri Apr 2 14:58:14 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux

    [root@localhost ~]# uname -r
      2.6.18-194.el5

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

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

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

    [root@localhost ~]# getconf LONG_BIT
      64

    [root@localhost ~]# file /bin/ls
      /bin/ls: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, stripped

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

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    手机版|小黑屋|Archiver|iOS开发笔记 ( 湘ICP备14010846号 )

    GMT+8, 2024-11-22 00:21 , Processed in 0.048946 second(s), 22 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2021, Tencent Cloud.

    快速回复 返回顶部 返回列表