linux version command

Shell
cat /etc/os-releaselsb_release -apython -V
Source

Also in Shell: