which linux version is this

The distribution, its version, the kernel and the hardware it runs on.

  • system

Steps

  1. cat /etc/os-release

    the distribution and its version

  2. hostnamectl

    the same, with the kernel and the machine

  3. uname -r

    the kernel's version

  4. uname -m

    the processor's kind: x86_64, aarch64

  5. sw_vers

    macOS's version

Commands used

  • uname
  • hostnamectl
  • lsb_release

Each has a page in lore: lore uname opens it.