how to see operating system on linux code example Example 1: check the linux distribution cat /etc/os-release Example 2: linux version command lsb_release -a