Wondering what linux distro is running in a container or on some forgotten VM? I’m sure if you’re in the various flavors of Linux, including but not limited to Ubuntu, CentOS, Fedora, Debian, etc., then you would recognize the distro by file structure or other subtle differences. For those that don’t recognize the distro instantly, here’s a quick linux command to see what OS and version is running,
It will return back something along the lines of:
DISTRIB_ID=Ubuntu DISTRIB_RELEASE=16.04 DISTRIB_CODENAME=xenial DISTRIB_DESCRIPTION="Ubuntu 16.04.4 LTS" NAME="Ubuntu" VERSION="16.04.4 LTS (Xenial Xerus)"
Short, sweet tutorial to point you in the right direction.
Photo by Clem Onojeghuo on Unsplash