In a typical Linux shell (bash) it is possible to to hit tab twice, to get a list of all available shell commands.
Is there a command which has the same behaviour? I want to pipe it into
You could use compgen. For example:
You also could grep it, like this:
compgen -c | grep top$