Bash Help Command

Let’s take a look at what bash is, and you can see it through whatis bash, apropos bash or man -k bash commands:

img

bash is GNU's Bourne-Again SHell

The builtins is actually a soft link to bash-builtins:

img

builtins is a soft link to bash-builtins

So we can use man builtins, info builtins, man bash-builtins or info bash-builtins commands to view bash’s built-in commands:

img

after running man builtins command

help is bash’s built-in documentation command to see how built-in functions are used, for example help cd command:

img

after running help cd command

We can use the help command to see how it works:

img

help help command result

Info and Man Commands

The two commands, man and info, are not too different. They are both used to see how system commands are used and complement the help command.

We can view the purpose of the man command by executing the man man command or the info man command:

img

man man and info man commands result

We can view the purpose of the info command by executing the man info command or the info info command:

img

man info and info info commands result

When you use info or man to view the manual of bash built-in command cd, you don’t see it:

img

after running info cd and man cd commands

We can take a look at which commands the info command provides a manual:

img

after running info command

Summary

At the end, we can find out where info and man commands are and what they are, but we can’t find where help command is and what it is:

img

don't see any info about help, but it's a bash built-in command

References Bash Reference Manual, WHEREIS, WHATIS, MAN, INFO

Buy me a coffeeBuy me a coffee