View Linux operating system version information uname
uname command is used to display the version information of the current system .
With -a uname command options will give the current operating system of all the useful information .
Command is as follows:
[root@node1 /]# uname -a Linux node1 3.10.0-693.el7.x86_64 #1 SMP Tue Aug 22 21:09:27 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
Implementation of the results is as follows:
You can use the -r option to view only the operating system kernel information .
[root@node1 /]# uname -r 3.10.0-693.el7.x86_64
Results are as follows:
Supplementation
Instructions uname command is as follows (using man uname command to check the manual):
UNAME(1) User Commands UNAME(1) NAME uname - print system information SYNOPSIS uname [OPTION]... DESCRIPTION Print certain system information. With no OPTION, same as -s. -a, --all print all information, in the following order, except omit -p and -i 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 or "unknown" -i, --hardware-platform print the hardware platform or "unknown" -o, --operating-system print the operating system --help display this help and exit --version output version information and exit GNU coreutils online help: <http://www.gnu.org/software/coreutils/> Report uname translation bugs to <http://translationproject.org/team/> AUTHOR Written by David MacKenzie. COPYRIGHT Copyright ? 2013 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. SEE ALSO arch(1), uname(2) The full documentation for uname is maintained as a Texinfo manual. If the info and uname programs are properly installed at your site, the command info coreutils 'uname invocation' should give you access to the complete manual.
If CentOS operating system , you can use the following command to view the version information:
[root@node1 /]# cat /etc/redhat-release CentOS Linux release 7.4.1708 (Core)
Results are as follows: