get ubuntu version bash code example Example 1: check ubuntu version lsb_release -a Example 2: how to know the shell version in ubuntu gnome-shell --version