How to check a program version in Ubuntu Linux

How to check a program version in Ubuntu Linux

Versions
How to check the kernel Linux
How to check the distribution Ubuntu
How to check a program version in Ubuntu
How to check the X type in Ubuntu

Article author: Andrei Olegovich