Uname command: displays operating system information
The uname command is used to display information about the operating system, including version and platform.
Its parameters mainly include:
-A: All information is displayed.
-S: display the kernel name
-N: display the Host Name
-R: displays the kernel version of the current system.
-M: displays the host hardware name.
-P: display the processor type
-I: displays the hardware platform of the host.
-O: displays the name of the operating system used.
Let's take a look:
[Root @ redhat ~] # Uname-
Linux redhat.example.com 2.6.32-279. el6.i686 #1 SMP Wed Jun 13 18:23:32 EDT 2012 i686 i686 i386 GNU/Linux
[Root @ redhat ~] # Uname-s
Linux
[Root @ redhat ~] # Uname-n
Redhat.example.com
[Root @ redhat ~] # Uname-r
2.6.32-279. el6.i686
[Root @ redhat ~] # Uname-m
I686
[Root @ redhat ~] # Uname-p
I686
[Root @ redhat ~] # Uname-I
I386
[Root @ redhat ~] # Uname-o
GNU/Linux
The following are extensions:
[Root @ redhat ~] # Getconf LONG_BIT // check that the current system is 32-bit
32
[Root @ redhat ~] # 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 view it using the following method:
[Root @ redhat ~] # Cat/etc/redhat-release
Red Hat Enterprise Linux Server release 6.3 (Santiago)