The lsb_release command gives LSB (Linux Standard Base) and distribution-specific information on the CLI.
$ egrep '^(VERSION|NAME)=' /etc/os-releaseĮven tiny Linux distro such as Alpine Linux provide the required OS (Operating system) information, including version: NAME='Alpine Linux'īUG_REPORT_URL='' Checking OS version on Linux using the lsb_release command We can filter out information such as OS version and name using the grep command/ egrep command as follows: Let us see all examples in details for common Linux distros. Type the following command to find Linux kernel version:.For remote server login using the ssh: ssh Type any one of the following command to find os name and version in Linux:.Open the terminal application (bash shell).The procedure to find os name and version on Linux: