qileilove

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

          如何查看Linux操作系統版本?

          請在文本框輸入文字
            如何查看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-07-08 13:25 順其自然EVO 閱讀(278) 評論(0)  編輯  收藏 所屬分類: linux

          <2013年7月>
          30123456
          78910111213
          14151617181920
          21222324252627
          28293031123
          45678910

          導航

          統計

          常用鏈接

          留言簿(55)

          隨筆分類

          隨筆檔案

          文章分類

          文章檔案

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 乃东县| 青川县| 和田县| 南康市| 耿马| 五台县| 光泽县| 云梦县| 贵定县| 汶川县| 富川| 沈阳市| 曲阳县| 沙田区| 子长县| 合江县| 车致| 石棉县| 上犹县| 大名县| 丰都县| 慈溪市| 九龙县| 体育| 新干县| 彩票| 厦门市| 金堂县| 拉孜县| 航空| 阿巴嘎旗| 巫溪县| 盐源县| 万源市| 隆德县| 司法| 呈贡县| 罗江县| 云阳县| 大冶市| 烟台市|