check linux version in linux code example Example 1: linux version command lsb_release -a Example 2: linux version sudo uname -a