The uname command
The uname
command lets you print out system information and defaults to outputting the kernel name.
[root@academy /]# uname
Linux
[root@academy /]# uname -a
Linux academy 3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
[root@academy /]# uname -s
Linux
[root@academy /]# uname -n
academy
[root@academy /]# uname -r
3.10.0-1160.el7.x86_64
[root@academy /]# uname -v
#1 SMP Mon Oct 19 16:18:59 UTC 2020
[root@academy /]# uname -m
x86_64
[root@academy /]# uname -p
x86_64
[root@academy /]# uname -i
x86_64
[root@academy /]# uname -o
GNU/Linux
[root@academy /]#
Options
Short Flag
Long Flag
Description
-a
--all
Print all information, except omit processor and hardware platform if unknown.
-s
--kernel-name
Print the kernel name.
-n
--nodename
Print the network node hostname.
-r
--kernel-release
Print the kernel release.
-v
--kernel-version
Print the kernel version.
-m
--machine
Print the machine hardware name.
-p
--processor
Print the processor type (non-portable).
-i
--hardware-platform
Print the hardware platform (non-portable).
-o
--operating-system
Print the operating system.
Last updated