|
|
茫茫網海中的冷日
發生過的事,不可能遺忘,只是想不起來而已! |
|
恭喜您是本站第 1675149
位訪客!
登入 | 註冊
|
|
|
|
發表者 |
討論內容 |
冷日 (冷日) |
發表時間:2005/3/29 5:52 |
- 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
|
|
|