18 Commands That Will Change The Way You Use Linux Forever
uname -a will display the kernel version (e.g. “Linux –”) · cat /etc/lsb-release will display the distribution name and version (e.g. “Ubunutu The command uname-r is used to find out what Linux kernel version is. Finding OS for CentOS/Ubuntu. The previous instructions can be perfectly used for CentOS and Ubuntu. The .
Here are some examples that fine-tune the content of os-release to print only specific details. The following command will print only the version and name of the OS. $ egrep '^ .