compgen:tldr:4d8c2
compgen: List all functions that you could run.
$ compgen -A function
try on your machine
The compgen
command in Linux is used to generate possible completions or list of all possible commands, files, functions, or aliases based on the input provided.
The -A
option is used to specify the type of completions to generate, and function
is the argument provided to -A
to indicate that only functions should be considered for completion.
Therefore, the command compgen -A function
generates a list of all possible completions or names of functions available on the system. The list can be used for auto-completion purposes, scripting, or other system administration tasks.
This explanation was created by an AI. In most cases those are correct. But please always be careful and
never run a command you are not sure if it is safe.