December 2018
Beginner
826 pages
22h 54m
English
You might have noticed the Ubuntu usage of lsb_release to grab its OS version; the same can be done on CentOS, but first, lsb_release needs to be installed:
$ sudo yum install redhat-lsb-core
Now, we can run the same command that Ubuntu uses in order to get OS information:
$ lsb_release -s -d"CentOS Linux release 7.5.1804 (Core) "
The same can be done on Debian, without having to install anything by default:
$ lsb_release -s -dDebian GNU/Linux 9.5 (stretch)
Linux Standard Base (LSB) is basically a standard that multiple distributions sign up to. It specifies a Filesystem Hierarchy Standard (FHS), as well as various other components of a Linux system.