Sometimes the OS version isn’t enough—you need to know the kernel version. That’s the deep, dark engine under the hood. Use uname -r. That gives you something like “5.15.0-91-generic.” It’s cryptic, I know, but it’s the beating heart of your system.
If you want the full shebang—kernel name, machine hardware, and everything—hit uname -a. The “a” stands for “all,” which is programmer-speak for “I want to know everything and I’m lazy.” Relatable, right?
How To Check Version Linux - Forcesurgery24
Pro tip: Never type uname -a in front of a boss unless you’re ready to explain every single field. You might end up pretending you know what “x86_64” means in detail. Spoiler: you just need to know it’s your system’s architecture—end of story.
What About Graphical Distros?
If you’re on a desktop with a nice GUI, you can cheat and go to “Settings” -> “About.” But come on—you’re reading an article about terminal commands. You’re not a cheat. You’re a real terminal whisperer now. So just type cat /etc/os-release and feel the power surge through your fingertips.
If you’re feeling really sassy, string together a few commands: cat /etc/os-release && uname -r. That prints the OS version and kernel version in one glorious, smug line. You’ll look like you’ve been doing this for decades.