@irai
Linux Oct 31, 2026

How can I check which Linux version is installed on a machine?

Inherited an old box at work and need to know the distro and release before installing anything. uname -r only gives me the kernel number. Is there a command that shows the actual distro name and version?
1

Leave A Reply

Log in to post an answer.

1 Answer

otisk Nov 04, 2026
irai
cat /etc/os-release works on pretty much every distro. hostnamectl also shows it, and uname -r gives you the kernel version if that's what you're after.