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 閱讀(279) 評論(0)  編輯  收藏 所屬分類: linux

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

          導航

          統計

          常用鏈接

          留言簿(55)

          隨筆分類

          隨筆檔案

          文章分類

          文章檔案

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 黄冈市| 唐河县| 邢台县| 惠州市| 凤山县| 梁山县| 江陵县| 察哈| 江口县| 油尖旺区| 金湖县| 嘉禾县| 张家界市| 千阳县| 奇台县| 嫩江县| 济阳县| 辽宁省| 且末县| 革吉县| 海南省| 滁州市| 新民市| 桂平市| 湖南省| 柘城县| 和顺县| 巴塘县| 芜湖县| 九寨沟县| 南昌市| 黄平县| 赤城县| 凤凰县| 达日县| 班玛县| 大埔区| 永登县| 精河县| 曲水县| 宁城县|