Uname is the Linux command used to display the current operating system name
Parameters
-A View all information
-S Displays the Linux kernel name
-N Display host name
-r Display Kernel version number
-V shows the operating system is the first version
-m display the host's hardware (CPU) name
-O Display Operating system name
Example:
-A
[Email protected] ~]# uname-a
Linux wuxiujian20150915 2.6.32-504.el6.x86_64 #1 SMP Wed Oct 04:27:16 UTC 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 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] ~]#
This article from "Flat Light is true" blog, please be sure to keep this source http://wuxiujian.blog.51cto.com/10583235/1691711
Uname is the Linux command used to display the current operating system name