You can check the server OS versions and other information like distribution name and kernel version by following the commands as below:
You need to use the following command:

- uname
Print current kernel version by following command
# uname -r

Print all information of kernel version
# uname -a

- lsb_release
Print distribution version of OS
# cat /etc/*release
Or
# lsb_release -a

- /proc/version file
Print the kernel version is currently running, It includes the contents of proc/sys/kernel/ostype, /proc/sys/kernel/osrelease and /proc/sys/kernel/version files
# cat /proc/version
or
# cat /proc/sys/kernel/{ostype,osrelase,version}

Was this answer helpful? 1 Users Found This Useful (472 Votes)