Cheat sheets

Which version am I on? OS, chip and shell

Find your operating system version, processor type and shell, which most install guides ask for.

Handy? Press ⌘ DCtrl + D to bookmark this page for next time.

  1. macOS version
    Terminal
    sw_vers
  2. Processor (arm64 means Apple silicon)
    Terminal
    uname -m
  3. Your shell
    Terminal
    echo $SHELL
  1. Linux version
    Terminal · Ubuntu / Debian
    cat /etc/os-release
  2. Processor (x86_64 or aarch64)
    Terminal · Ubuntu / Debian
    uname -m
  3. Your shell
    Terminal · Ubuntu / Debian
    echo $SHELL
  1. Windows version
    PowerShell
    [System.Environment]::OSVersion.Version
  2. Processor (AMD64 or ARM64)
    PowerShell
    $env:PROCESSOR_ARCHITECTURE
  3. PowerShell version
    PowerShell
    $PSVersionTable.PSVersion