uname 命令详解

Usage: uname [OPTION]...
Print certain system information.  With no OPTION, same as -s.

   -a, --all         print all information, in the following order,
                       except omit -p and -i if unknown:
   -s, --kernel-name        print the kernel name
   -n, --nodename           print the network node hostname
   -r, --kernel-release     print the kernel release
   -v, --kernel-version      print the kernel version
   -m, --machine              print the machine hardware name
   -p, --processor            print the processor type or "unknown"
   -i, --hardware-platform    print the hardware platform or "unknown"
   -o, --operating-system     print the operating system
         --help     display this help and exit
         --version     output version information and exit

Report bugs to <[email protected]>.

——————————————————————————————————————————

用法: uname [选项] ...
输出一组系统信息。如果不跟随<选项>,则视为只附加 -s 选项。

    -a, --all      按照如下次序输出所有信息。其中若 -p 和 -i 的探测结果不可知则被省略:
    -s, --kernel-name      输出内核名称
    -n, --nodename      输出网络节点上的主机名
    -r, --kernel-release      输出内核发行版
    -v, --kernel-version      输出内核版本
    -m, --machine      输出主机的硬件架构名称
    -p, --processor      输出处理器类型或“unkown”
    -i, --hardware-platform      输出硬件平台或“unknown”
    -o, --operating-system      输出操作系统名称
          --help     显示此帮助信息并退出
          --version      输出版本信息并退出

请向 <[email protected]> 报告错误。

——————————————————————————————————————————

localhost:~ # uname -a
Linux localhost 2.6.22.5-31-default #1 SMP 2007/09/21 22:29:00 UTC x86_64 x86_64 x86_64 GNU/Linux
localhost:~ # uname
Linux
localhost:~ # uname -s
Linux
localhost:~ # uname -n
localhost
localhost:~ # uname -r
2.6.22.5-31-default
localhost:~ # uname -v
#1 SMP 2007/09/21 22:29:00 UTC
localhost:~ # uname -m
x86_64
localhost:~ # uname -p
x86_64
localhost:~ # uname -i
x86_64
localhost:~ # uname -o
GNU/Linux
localhost:~ # uname --version
uname (GNU coreutils) 6.9
Copyright (C) 2007 Free Software Foundation, Inc.
这是自由软件。您可以按照 GNU GPL 协议 <http://www.gnu.org/licenses/gpl.html> 的条款再发布此软件的副本,但我们无法保证相关法律不对这一情形进行限制。

由 David MacKenzie 编写。




猜你喜欢

转载自morgan363.iteye.com/blog/757663