qileilove

          blog已經轉移至github,大家請訪問 http://qaseven.github.io/

          查看Linux操作系統版本

           1. 查看內核版本命令:
          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) 登錄到服務器執行 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等發行版。
            2) 登錄到linux執行cat /etc/issue,例如如下:
            chen@mylinuxserver:/proc> cat /etc/issue
            Welcome to SUSE LINUX Enterprise Server 9 (i586) - Kernel \r (\l).
            3) 登錄到linux執行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

          posted on 2013-11-05 11:15 順其自然EVO 閱讀(250) 評論(0)  編輯  收藏 所屬分類: linux

          <2013年11月>
          272829303112
          3456789
          10111213141516
          17181920212223
          24252627282930
          1234567

          導航

          統計

          常用鏈接

          留言簿(55)

          隨筆分類

          隨筆檔案

          文章分類

          文章檔案

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 洞口县| 三门县| 朔州市| 安吉县| 青岛市| 固阳县| 茶陵县| 涞源县| 金门县| 珠海市| 沙雅县| 阿鲁科尔沁旗| 安宁市| 邳州市| 新乡县| 武陟县| 通化县| 兴化市| 凤阳县| 尚志市| 冀州市| 屏东县| 清水县| 南陵县| 犍为县| 大姚县| 西城区| 漯河市| 拉孜县| 晋宁县| 拉萨市| 清原| 灵寿县| 保靖县| 凤城市| 屯昌县| 清苑县| 藁城市| 托里县| 清河县| 富锦市|