I've been looking for some solution to find the name and version of the Linux distribution where I am running my Java code, eg. Ubuntu 18.04, CentOS 6, etc.
I am aware of files as
/etc/*release* (have read other answers), which are meant for such information, but am looking for currently available solutions so that I don't have to reinvent the wheel and don't have to bother about the list of files to check and their keys.
Also, I found one lib - github.com/will/oslib but it has just 18 stars and less forks.
From a product perspective, I'd love to avoid reinventing the wheel, and also avoid managing the list of files and the key name to check for to find linux distro information.