[Linux]学习笔记(3)-uname的用法

uname的用法如下:

[Linux]学习笔记(3)-uname的用法

uname –a[--all]:输出全部信息

[[email protected] ~]# uname -a

Linux linuxforlijiaman 2.6.32-504.el6.x86_64 #1 SMP Tue Sep 16 01:56:35 EDT 2014 x86_64 x86_64 x86_64 GNU/Linux

 

uname –s:操作系统名

[[email protected] ~]# uname -s

Linux

 

uname -n:主机名(n是nodename的缩写)

[[email protected] ~]# uname -n

linuxforlijiaman

 

uname -r:操作系统版本(r是release的缩写)

[[email protected] ~]# uname -r

2.6.32-504.el6.x86_64

 

uname -i:操作系统硬件平台

[[email protected] ~]# uname -i

x86_64