compgen Command Examples

A built-in command for auto-completion in Bash, which is called on pressing TAB key twice. More information: https://www.gnu.org/software/bash/manual/bash.html#index-compgen.

compgen -c

compgen -a

compgen -A function

compgen -k

compgen -ac {{ls}}