list all possible commands code example
Example 1: check command list
compgen -c #In Unix
help | more #In Windows
Example 2: linux get available commands
compgen -c will list all the commands you could run.
compgen -a will list all the aliases you could run.
compgen -b will list all the built-ins you could run.
compgen -k will list all the keywords you could run.
compgen -A function will list all the functions you could run.