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



Latest posts by Mr-Moo (see all)

Leave a Reply