Display the found command without actually executing it

run-mailcap

  • Run MailCap Programs.
    Run mailcap view, see, edit, compose, print - execute programs via entries in the mailcap file (or any of its aliases) will use the given action to process each mime-type/file.
    More information: <https://manned.org/run-mailcap>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

run-mailcap --action=ACTION --norun {{filename}}

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