# Useful Linux Command of the Day - compgen

DevFeed: [Useful Linux Command of the Day - compgen](<https://devfeed.tech/articles/useful-linux-command-of-the-day-compgen-31818.md>)

Original publisher: [Read original article](<https://www.metachris.dev/2010/12/useful-linux-command-of-the-day-compgen/>)

Author: Chris Hager

Published: 2010-12-11T00:00:00Z

Content type: tutorial

Language: en

Sources: [Chris Hager](<https://devfeed.tech/sources/chris-hager.md>)

Topics: [Linux](<https://devfeed.tech/topics/linux.md>), [Shell](<https://devfeed.tech/topics/shell.md>), [Command-line interface](<https://devfeed.tech/topics/cli.md>)

Tags: [command](<https://devfeed.tech/tags/command.md>), [commands](<https://devfeed.tech/tags/commands.md>), [linux](<https://devfeed.tech/tags/linux.md>), [shell](<https://devfeed.tech/tags/shell.md>), [useful](<https://devfeed.tech/tags/useful.md>)

## AI overview

A short Linux shell command guide to compgen, showing options for listing available commands, aliases, built-ins, keywords, and functions.

## Source excerpt

I've just learned about a particularly nice Linux shell command: compgen $ compgen -c ... list all the commands you could run. $ compgen -a ... list all the aliases you could run. $ compgen -b ... list all the built-ins you could run. $ compgen -k ... list all the keywords you could run. $ compgen -A function ... list all the functions you could run. $ compgen -A function -abck ... list all the above in one go.