uname command: Display of operating System information
The uname command is primarily used to display information about the operating system, including version and platform information.
It has the following main parameters:
-A Show All information
-S Display kernel name
-N Display host name
-R Displays the kernel version of the current system
-m display the hardware name of the host
-P Displays the type of processor
-I display the hardware platform of the host
-O Displays the name of the operating system you are using
Let's take a look at the following:
[Email protected] ~]# uname-a
Linux redhat.example.com 2.6.32-279.el6.i686 #1 SMP Wed June 18:23:32 EDT i686 i686 i386 gnu/linux
[Email protected] ~]# uname-s
Linux
[Email protected] ~]# uname-n
Redhat.example.com
[Email protected] ~]# uname-r
2.6.32-279.el6.i686
[Email protected] ~]# uname-m
i686
[Email protected] ~]# uname-p
i686
[Email protected] ~]# uname-i
I386
[Email protected] ~]# Uname-o
Gnu/linux
The following is an extension:
[[email protected] ~]# getconf long_bit //view current system is 32-bit
32
[[email protected] ~]# cat/etc/issue //View the current system type
Red Hat Enterprise Linux Server release 6.3 (Santiago)
Kernel \ r on an \m
You can also use the following methods to view:
[[email protected] ~]# cat/etc/redhat-release
Red Hat Enterprise Linux Server release 6.3 (Santiago)