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)

          隨筆分類

          隨筆檔案

          文章分類

          文章檔案

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 金川县| 汝州市| 五大连池市| 深泽县| 密云县| 天门市| 敖汉旗| 宣恩县| 成都市| 三穗县| 禄劝| 清河县| 双辽市| 镇江市| 颍上县| 舒兰市| 和林格尔县| 安丘市| 牙克石市| 广河县| 乃东县| 临朐县| 鸡泽县| 长宁县| 青浦区| 仁怀市| 淳安县| 施秉县| 三明市| 庆城县| 乌兰浩特市| 达州市| 酒泉市| 常州市| 赤壁市| 什邡市| 云南省| 南澳县| 荥经县| 汕尾市| 湄潭县|