get ubuntu version

C++
lsb_release -acat /etc/os-releaselsb_release -a
cat /etc/os-release
lsb_release -a

Source

Also in C++: