国产宅男网站在线|亚洲A级性爱免费视频|亚洲中精品级在线|午夜福利AA毛

  • <dd id="gf5jf"><th id="gf5jf"></th></dd>

    <cite id="gf5jf"><label id="gf5jf"></label></cite>
  • <div id="gf5jf"><listing id="gf5jf"></listing></div>
    學(xué)習(xí)啦 > 學(xué)習(xí)電腦 > 操作系統(tǒng) > Linux教程 >

    Linux系統(tǒng)怎么用命令查看操作系統(tǒng)信息

    時間: 加城1195 分享

      在Linux下我們想查看操作系統(tǒng)版本信息,除了在屬性欄直接查看,還能用命令查看,具體怎么操作呢。下面由學(xué)習(xí)啦小編為大家整理了查看Linux操作系統(tǒng)版本的命令,希望對大家有幫助!

      查看Linux的操作系統(tǒng)版本命令

      1. 查看Linux版本:

      1) 登錄到服務(wù)器執(zhí)行 lsb_release -a ,即可列出所有版本信息,例如:

      chen@mylinuxserver:/proc> lsb_release -a

      LSB Version: core-2.0-noarch:core-3.0-noarch:core-2.0-ia32:core-3.0-ia32:graphics-2.0-ia32:graphics-2.0-noarch:graphics-3.0-ia32:graphics-3.0-noarch

      Distributor ID: SUSE LINUX

      Description: SUSE LINUX Enterprise Server 9 (i586)

      Release: 9

      Codename: n/a

      注:這個命令適用于所有的linux,包括Redhat、SuSE、Debian等發(fā)行版。

      2) 登錄到linux執(zhí)行cat /etc/issue,例如如下:

      chen@mylinuxserver:/proc> cat /etc/issue

      Welcome to SUSE LINUX Enterprise Server 9 (i586) - Kernel \r (\l).

      3) 登錄到linux執(zhí)行cat /etc/redhat-release ,例如如下:

      chen@mylinuxserver:/proc> cat /etc/*release*

      LSB_VERSION="core-2.0-noarch:core-3.0-noarch:core-2.0-ia32:core-3.0-ia32"

      cat: /etc/lsb-release.d: 是一個目錄

      SUSE LINUX Enterprise Server 9 (i586)

      VERSION = 9

      PATCHLEVEL = 3

      補充:查看redhat的release版本

      #more /etc/redhat-release

      Red Hat Enterprise Linux AS release 4 (Nahant Update 4)

      #more /etc/issue

      # more /proc/version

      查看CPU信息

      #grep "model name" /proc/cpuinfo

      #more /proc/cpuinfo

      查看CPU位數(shù)(32 or 64)

      #getconf LONG_BIT

      查看內(nèi)存信息

      #more /proc/meminfo

      #grep MemTotal /proc/meminfo

      查看libc、gcc版本

      #ldd /sbin/mii-tool

      #rpm -qa | grep glibc

      #gcc –v

      補充:查看Ubuntu版本

      方法一

      在終端中執(zhí)行下列指令:

      cat /etc/issue

      可以查看當前正在運行的 Ubuntu 的版本號。其輸出結(jié)果類似下面的內(nèi)容:

      Ubuntu 7.04 \n \l

      方法二

      使用 lsb_release 命令也可以查看 Ubuntu 的版本號,與方法一相比,內(nèi)容更為詳細。執(zhí)行指令如下

     ?。?/p>

      sudo lsb_release -a

      將輸出結(jié)果:

      Distributor ID: Ubuntu

      Description: Ubuntu 7.04

      Release: 7.04

      Codename: feisty

      補充:查看freebsd版本

      uname -a

    3973432