Check Linux Version: lsb_release vs hostnamectl for Identifying Linux System Versions
Most administrators should try hostnamectl first for a quick Linux system summary, then use lsb_release -a when the exact distribution description and codename are needed. hostnamectl usually gives the operating system, kernel, architecture, virtualization status, and host identity in one clean view. lsb_release is narrower, but it is still useful for package support checks and distribution-specific reporting.