Linux命令之uname
原创
©著作权归作者所有:来自51CTO博客作者说文科技的原创作品,请联系作者获取转载授权,否则将追究法律责任
Linux命令之uname
uname :print system information #打印系统信息
-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" #打印处理类型/unknown
-i, --hardware-platform print the hardware platform or "unknown" #打印硬件平台/unknown
-o, --operating-system print the operating system #打印操作系统
--help display this help and exit
--version output version information and exit #输出版本信息并退出
[root@littlelawson ~]# uname -a
Linux littlelawson 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
[root@littlelawson ~]# uname -s
Linux
[root@littlelawson ~]# uname -n
littlelawson
[root@littlelawson ~]# uname -r
2.6.32-431.el6.x86_64
[root@littlelawson ~]# uname -v
#1 SMP Fri Nov 22 03:15:09 UTC 2013
[root@littlelawson ~]# uname -m
x86_64
[root@littlelawson ~]# uname -p
x86_64
[root@littlelawson ~]# uname -i
x86_64
[root@littlelawson ~]# uname -o
GNU/Linux