Linux: Get Ubuntu Distribution Codename

Objective: Get Ubuntu distribution codename such as trusty for 14.04 and xenial for 16.04

To get the codename of a Ubuntu release, use the lsb_release command.

Another way is to cat the /etc/os-release file.

The third option is to extract the codename from the /etc/lsb-release file.

ibrahim = { interested_in(unix, linux, android, open_source, reverse_engineering); coding(c, shell, php, python, java, javascript, nodejs, react); plays_on(xbox, ps4); linux_desktop_user(true); }