Forrest logo
tool overview
On this page you find all important commands for the CLI tool compgen. If the command you are looking for is missing please ask our AI.


The compgen is bash built-in command and it will show all available commands, aliases, and functions for you. This command works under Linux, macOS, *BSD and Unix-like system when Bash shell is installed. This command is intended to be used from within a shell function generating possible completions. If the optional CLI argument (WORDS) is supplied, it matches against the given WORDS.

List of commands for compgen:

tool overview