Display information about a specified command

update-alternatives

  • A convenient tool for maintaining symbolic links to determine default commands.
    More information: <https://manned.org/update-alternatives>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

update-alternatives --display {{java}}

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