對這文章發表回應
發表限制: 非會員 可以發表
發表者: 冷日 發表時間: 2005/3/29 5:52:11
	在LINUX中,有一個指令叫做 uname !
這個指令的功能就是顯示現在系統上的一些資訊.
不過這裡所指的系統資訊,比較偏向"作業系統資訊"!
和一般所謂的系統資源不太一樣!
大家可以先看看該指令的說明檔如下:
然後大家就可以使用最簡單參數"ALL"來看看你的作業系統資訊:
這裡順便提供 uname 的 man page:
這個指令的功能就是顯示現在系統上的一些資訊.
不過這裡所指的系統資訊,比較偏向"作業系統資訊"!
和一般所謂的系統資源不太一樣!
大家可以先看看該指令的說明檔如下:
#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
			