compgen
all
Bash built-in command for generating possible completion matches in Bash. Usually used within custom completion functions. See also: `complete`, `compopt`.
More info →Examples (8)
List all shell built-ins, aliases, functions, and executables that you could run
compgen -cList all commands that you could run that start with a specified string and save results to `$COMPREPLY`
compgen -V COMPREPLY -c strMatch against a wordlist
compgen -W "apple orange banana" aList all aliases
compgen -aShow shell reserved keywords
compgen -kList all users on the system
compgen -umade by @shridhargupta | data from tldr-pages