DEV Community

Lautaro Lobo
Lautaro Lobo

Posted on • Originally published at lautarolobo.xyz on

Wich Linux distro am I running?

Once I was a Linux Newbie too, and I struggled my self to answer such a frivolous question, so here I have put all these lines of code together, so you won’t need to open 7 tabs and try to figure out which one has the key to get that coveted knowledge. This are many methods, so I can asure you that at least one will work on your PC.

Let’s jump right into the code:

hostnamectl
Enter fullscreen mode Exit fullscreen mode
gcc --version
Enter fullscreen mode Exit fullscreen mode
uname -a
Enter fullscreen mode Exit fullscreen mode
lsb_release -a
Enter fullscreen mode Exit fullscreen mode
lsb_release -irc
Enter fullscreen mode Exit fullscreen mode
lsb_release -ds
Enter fullscreen mode Exit fullscreen mode
cat /etc/issue*
Enter fullscreen mode Exit fullscreen mode
cat /proc/version
Enter fullscreen mode Exit fullscreen mode
cat /etc/*-release
Enter fullscreen mode Exit fullscreen mode

Well, I hope that this has helped to let you know which Linux distro are you running. Remember that you can approach me by email or through Telegram. Keep learning kiddo!

Top comments (0)