uname 命令简介

 

查看系统基本信息

$ cat /proc/version = “It returns a full string of information”
$ uname -m = “The result of the machine’s number”
$ uname -r = “Show the version of the kernel”
$ uname -n = “Returns the local domain name”
$ uname -s = “Will show the system name”
$ uname -p = “It tells you the type and name of the processor”
$ uname -a = “Will show all the information above and also the date and time of the system”

cat /proc/version 返回系统信息
uname -m 返回 “i686″等信息
uname -r 内核版本
uname -n 主机名
uname -s 系统名称,比如”linux”
uname -p 处理器类型和名称(我这里显示 “unknown”)
uname -a 所有 uname 信息

posted @ 2012-06-04 19:06  wangkangluo1  阅读(1545)  评论(0编辑  收藏  举报