精品丰满熟女一区二区三区_五月天亚洲欧美综合网_亚洲青青青在线观看_国产一区二区精选

  • <menu id="29e66"></menu>

    <bdo id="29e66"><mark id="29e66"><legend id="29e66"></legend></mark></bdo>

  • <pre id="29e66"><tt id="29e66"><rt id="29e66"></rt></tt></pre>

      <label id="29e66"></label><address id="29e66"><mark id="29e66"><strike id="29e66"></strike></mark></address>
      學(xué)習(xí)啦 > 學(xué)習(xí)電腦 > 操作系統(tǒng) > Linux教程 >

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

      時(shí)間: 加城1195 分享

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

        查看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

        注:這個(gè)命令適用于所有的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: 是一個(gè)目錄

        SUSE LINUX Enterprise Server 9 (i586)

        VERSION = 9

        PATCHLEVEL = 3

        補(bǔ)充:查看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

        補(bǔ)充:查看Ubuntu版本

        方法一

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

        cat /etc/issue

        可以查看當(dāng)前正在運(yùn)行的 Ubuntu 的版本號(hào)。其輸出結(jié)果類(lèi)似下面的內(nèi)容:

        Ubuntu 7.04 \n \l

        方法二

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

       ?。?/p>

        sudo lsb_release -a

        將輸出結(jié)果:

        Distributor ID: Ubuntu

        Description: Ubuntu 7.04

        Release: 7.04

        Codename: feisty

        補(bǔ)充:查看freebsd版本

        uname -a

      3973432