Finding your linux version

Useful CLI commands that I’ve compiled in order to determine which flavor/version of Linux I’m running.

Kernel: uname -r
Distro: lsb_release -a

Prints certain system information usually related to the kernel (-a is the ALL switch).


You can cat the /proc/version file:


cat the /etc/lsb-release

Debian has /etc/debian_version

Fedora has /etc/fedora-release

Red Hat/CentOS has /etc/redhat-release

Gentoo has /etc/gentoo-release

You may be able to try out cat /etc/issue




IT Director/System Engineer at
Currently residing in Southwest Florida, though Indiana native. My experience: worked at 50+ location gas station chain doing IT support, Systems Engineer at a large MSP, Server Engineer at Community Health Systems, and currently a Director/Systems Engineer at a 25+ location retail business.

Technology has always been a passion that I've enjoyed.

Latest posts by Mr-Moo (see all)

Leave a Reply