how to check my linux version in terminal code example Example 1: how to check version of linux command line cat /etc/os-release Example 2: check linux ubuntu version lsb_release -a