How to list all shell built-ins?

QuestionsQuestions8 SkillsProDec, 16 2025
0105

That's a great question! You're diving deeper into understanding how the shell works.

To list all shell built-in commands, you can use the compgen -b command. This command is specifically designed to generate possible completions for shell commands, and the -b option tells it to list only built-in commands.

Try it out in your terminal:

compgen -b

You'll see a long list of commands, and those are all the built-ins your current shell supports!

Let me know if you have any other questions as you explore the Linux command line!

0 Comments

no data
Be the first to share your comment!