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.
compgen
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:
-
compgen:tldr:4d8c2 compgen: List all functions that you could run.$ compgen -A functiontry on your machineexplain this command
-
compgen:tldr:63f37 compgen: Show shell reserved keywords.$ compgen -ktry on your machineexplain this command
-
compgen:tldr:684d4 compgen: See all available commands/aliases starting with 'ls'.$ compgen -ac ${ls}try on your machineexplain this command
-
compgen:tldr:8578a compgen: List all commands that you could run.$ compgen -ctry on your machineexplain this command