What version do I have of ___? - version is a bash script (works on other shells such as fish and zsh). Internally it keeps a list of known tools and what the flag is to find that tool's version. It looks for the argument you passed in that list. If it finds it, it reports what the correct flag is and then runs that tool with the correct argument, displaying the version of that tool.