Sometimes lsb_release isn’t installed. Don’t panic—just use apt update && apt install lsb-release. It’s like having a flashlight for a dark room: you bring the light yourself.
If you’re on a minimal server image, cat /proc/version can also give you the kernel version, which indirectly tells you the release. It’s a workaround that feels like a hack from a 1980s cyberpunk novel.
My favorite fallback: dpkg --print-architecture tells you if you’re on amd64 (64-bit) or i386 (32-bit). Combine that with version info, and you’re practically a Linux Detective.
The Final Check: Confirm with neofetch
For the visually inclined, install neofetch with apt install neofetch. When you type it, you’ll get a beautiful ASCII art of the Ubuntu logo, alongside your version, uptime, and even your theme. It’s like a digital mood board for your system.
Neofetch is perfect for screenshots on Reddit or when you want to impress your friends. It turns a boring version check into a mini art exhibit in your terminal—and who doesn’t love that?
Just remember: neofetch is decorative, not definitive. Always verify with a core command if you’re doing serious work. It’s the difference between wearing a costume and wearing your actual ID badge.