亚洲欧美精品沙发,日韩在线精品视频,亚洲Av每日更新在线观看,亚洲国产另类一区在线5

<pre id="hdphd"></pre>

  • <div id="hdphd"><small id="hdphd"></small></div>
      學(xué)習(xí)啦 > 學(xué)習(xí)電腦 > 操作系統(tǒng) > Linux教程 > 怎么知道Linux操作系統(tǒng)信息

      怎么知道Linux操作系統(tǒng)信息

      時(shí)間: 春健736 分享

      怎么知道Linux操作系統(tǒng)信息

        在linux中怎么知道操作系統(tǒng)的相關(guān)信息呢?學(xué)習(xí)啦小編整理了一些獲取Linux操作系統(tǒng)信息的命令,特此分享。

        怎么知道Linux操作系統(tǒng)信息

        1. 查看內(nèi)核版本命令:

        chen@mylinuxserver:~> cat /proc/version

        Linux version 2.6.5-7.244-smp (geeko@buildhost) (gcc version 3.3.3 (SuSE Linux)) #1 SMP Mon Dec 12 18:32:25 UTC 2005

        /proc 目錄的作用?

        chen@mylinuxserver:/proc> uname -a

        Linux mylinuxserver 2.6.5-7.244-smp #1 SMP Mon Dec 12 18:32:25 UTC 2005 i686 i686 i386 GNU/Linux

        chen@mylinuxserver:/proc> uname -r

        2.6.5-7.244-smp

        uname命令的作用?

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

        1,獲取當(dāng)前Linux的版本,這里使用的是CentOS

        代碼示例:[root@test~]# lsb_release -a

        LSB Version: :core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch

        Distributor ID: CentOS

        Description: CentOS release 6.2 (Final)

        Release: 6.2

        Codename: Final

        2,查看Linux kernel的版本號(hào)

        代碼示例:[root@test~]# uname -a

        Linux test 2.6.32-220.el6.x86_64 #1 SMP Tue Dec 6 19:48:22 GMT 2011 x86_64 x86_64 x86_64 GNU/Linux

        這里可以看到kernel版本2.6.32-220,操作系統(tǒng)位數(shù) x86_64(位數(shù))

        另一個(gè)查看操作系統(tǒng)位數(shù)的命令

        代碼示例:[root@test ~]# echo $HOSTTYPE

        x86_64

        3,在Linux中查看某個(gè)目錄下每個(gè)文件夾的大小

        代碼示例:du -h --max-depth=1 /usr/local

        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

      看過“ 怎么知道Linux操作系統(tǒng)信息 ”的人還看了:

      1.linux操作系統(tǒng)中應(yīng)該如何查看系統(tǒng)進(jìn)程

      2.Linux操作系統(tǒng)空間如何操作

      3.如何把Linux操作系統(tǒng)變成中文語言

      4.Linux操作系統(tǒng)基礎(chǔ)知識(shí)

      5.操作系統(tǒng)教程大全

      646437