To determine the version of Ubuntu via a terminal session, use the following command:
lsb_release –a