Skip to content

Instantly share code, notes, and snippets.

@hannic
Last active December 29, 2017 17:38
Show Gist options
  • Save hannic/2bdfe1e2a9ba207d7c6937691cf68be5 to your computer and use it in GitHub Desktop.
Save hannic/2bdfe1e2a9ba207d7c6937691cf68be5 to your computer and use it in GitHub Desktop.
Lists all commands available on Unix
compgen -c # will list all the commands you could run.
compgen -a # will list all the aliases you could run.
compgen -b # will list all the built-ins you could run.
compgen -k # will list all the keywords you could run.
compgen -A function # will list all the functions you could run.
compgen -A function -abck # will list all the above in one go.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment