茫茫網海中的冷日
         
茫茫網海中的冷日
發生過的事,不可能遺忘,只是想不起來而已!
 恭喜您是本站第 1675149 位訪客!  登入  | 註冊
主選單

Google 自訂搜尋

Goole 廣告

隨機相片
IMG_60D_00044.jpg

授權條款

使用者登入
使用者名稱:

密碼:


忘了密碼?

現在就註冊!

小企鵝開談 : [自創]如何查詢現在機器使用的核心(kernel)版本

發表者 討論內容
冷日
(冷日)
Webmaster
  • 註冊日: 2008/2/19
  • 來自:
  • 發表數: 15771
[自創]如何查詢現在機器使用的核心(kernel)版本
在LINUX中,有一個指令叫做 uname !
這個指令的功能就是顯示現在系統上的一些資訊.
不過這裡所指的系統資訊,比較偏向"作業系統資訊"!
和一般所謂的系統資源不太一樣!
大家可以先看看該指令的說明檔如下:
#uname --help
Usage: uname [OPTION]...
Print certain system information.  With no OPTION, same as -s.

  -a, --all        print all information
  -m, --machine    print the machine (hardware) type
  -n, --nodename   print the machine's network node hostname
  -r, --release    print the operating system release
  -s, --sysname    print the operating system name
  -p, --processor  print the host processor type
  -v               print the operating system version
      --help       display this help and exit
      --version    output version information and exit

Report bugs to <bug-sh-utils@gnu.org>.

然後大家就可以使用最簡單參數"ALL"來看看你的作業系統資訊:
#uname --all
Linux LinuxS 2.2.26 #5 Tue Mar 23 13:02:44 CST 2004 i686 unknown

這裡順便提供 uname 的 man page:
#man uname

UNAME(1)                       FSF                       UNAME(1)


NAME
       uname - print system information

SYNOPSIS
       uname [OPTION]...

DESCRIPTION
       Print certain system information.  With no OPTION, same as
       -s.

       -a, --all
              print all information

       -m, --machine
              print the machine (hardware) type

       -n, --nodename
              print the machine's network node hostname

       -r, --release
              print the operating system release

       -s, --sysname
              print the operating system name

       -p, --processor
              print the host processor type

       -v     print the operating system version

       --help display this help and exit

       --version
              output version information and exit

REPORTING BUGS
       Report bugs to <bug-sh-utils@gnu.org>.

SEE ALSO
       The full documentation for uname is maintained as  a  Tex-
       info  manual.  If the info and uname programs are properly
       installed at your site, the command

              info uname

       should give you access to the complete manual.

COPYRIGHT
       Copyright (C) 1999 Free Software Foundation, Inc.
       This is free software; see the source for  copying  condi-
       tions.  There is NO warranty; not even for MERCHANTABILITY
       or FITNESS FOR A PARTICULAR PURPOSE.





GNU sh-utils 2.0           August 1999                          1
前一個主題 | 下一個主題 | 頁首 | | |



Powered by XOOPS 2.0 © 2001-2008 The XOOPS Project|