Linux OS name

When your working under Linux you can normally tell which OS type your running however it may be difficult to determine the OS version or the name of the OS release. Under Ubuntu there is many versions There is 12.04 and 14.04, they both work in very similar ways, however there may be instances where by you need to know which OS your running under. We can use the following commands to determine this:

lsb_release -a

Distributor ID:	Ubuntu
Description:	Ubuntu 14.04.1 LTS
Release:	14.04
Codename:	trusty
cat /etc/centos-release

CentOS release 6.6 (Final)