zoukankan      html  css  js  c++  java
  • 查看linux系统类型、版本、位数

    如何查看LINUX操作系统是多少位的

    方法1:

    查看linux是不是64位的命令! file /sbin/init

    结果会出来 xx bit

    方法二:

    # getconf LONG_BIT
    32
    getconf命令还可以获取系统的基本配置信息,比如操作系统位数,内存大小,磁盘大小等。

    $getconf -a

    linux操作系统的主机,怎么看是哪种类型的操作系统,及操作系统的具体信息?

    方法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.3 (Final)
    Release: 5.3
    Codename: Final


    方法2:cat /proc/version 系统版本信息

    [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.3 (Final)
    Release: 5.3
    Codename: Final

  • 相关阅读:
    正式班D25
    解决oracle用户锁定
    python学习第17天
    python学习第16天
    python学习第15天
    python学习第十四天
    python学习第13天
    Python基础
    python学习第12天
    python学习第11天
  • 原文地址:https://www.cnblogs.com/lisuyun/p/4223858.html
Copyright © 2011-2022 走看看