Print only the operating system name (ID), suppressing the field name

lsb_release

  • Provides certain LSB (Linux Standard Base) and distribution-specific information.
    More information: <https://manned.org/lsb_release>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

lsb_release -i -s

click the source code to copy install lsb_release on any operating system with command-not-found.com