System Grab Bag

View all TLDR pages from common (or from all pages)

compgen

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.
  • List all commands that you could run:
    compgen -c
  • List all aliases:
    compgen -a
  • List all functions that you could run:
    compgen -A function
  • Show shell reserved keywords:
    compgen -k
  • See all available commands/aliases starting with 'ls':
    compgen -ac {{ls}}

License and Disclaimer

The content on this page is copyright © 2014—present the tldr-pages team and contributors.
This page is used with permission under Creative Commons Attribution 4.0 International License.

While we do attempt to make sure content is accurate, there isn't a warranty of any kind.