6. Linux Bash help, System man, info
Contents
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:
The builtins is actually 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:
help is bash’s built-in documentation command to see how built-in functions are used, for example help cd command:
We can use the help command to see how it works:
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:
We can view the purpose of the info command by executing the man info command or the man info command:
When you use info or man to view the manual of bash built-in command cd, you don’t see it:
We can take a look at which commands the info command provides a manual:
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:
References Bash Reference Manual, WHEREIS, WHATIS, MAN, INFO
Author Dong Chen
LastMod Thu Feb 7 2019