参 数:
-a 查看所有信息
-s 显示linux内核名称
-n 显示主机名称
-r 显示内核版本号
-v 显示操作系统是第几个 version 版本
-m 显示主机的硬件(CPU)名
-o 显示操作系统名
举例:
-a
[[email protected] ~]# uname -a
Linux wuxiujian20150915 2.6.32-504.el6.x86_64 #1 SMP Wed Oct 15 04:27:16 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
[[email protected] ~]#
-s
[[email protected] ~]# uname -s
Linux
[[email protected] ~]#
-n
[[email protected] ~]# uname -n
wuxiujian20150915
[[email protected] ~]#
-r
[[email protected] ~]# uname -r
2.6.32-504.el6.x86_64
[[email protected] ~]#
-v
[[email protected] ~]# uname -v
#1 SMP Wed Oct 15 04:27:16 UTC 2014
[[email protected] ~]#
-m
[[email protected] ~]# uname -m
x86_64
[[email protected] ~]#
-o
[[email protected] ~]# uname -o
GNU/Linux
[[email protected] ~]#
时间: 2024-10-11 16:51:59