C++ get linux distribution name\version
问题 According to the question " How to get Linux distribution name and version? ", to get the linux distro name and version, this works: lsb_release -a On my system, it shows the needed output: No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 9.10 Release: 9.10 Codename: karmic Now, to get this info in C++, Qt4's QProcess would be a great option but since I am developing without Qt using std c++, I need to know how to get this info in standard C++, i.e. the stdout of the