I’m always learning new neat commands on Linux.

Sometimes I’ve been logged into a machine and wondered what distro and/or version of a distro is running.

The command I found that does the trick is

lsb_release -a

This should work on most recent distros such as ubuntu, redhat, or suse.