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
# 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
# cat /proc/sys/kernel/{ostype,osrelase,version}

Esta resposta foi útil? 1 Utilizadores acharam útil (472 Votos)