November 2, 2024
Using the help feature to know more about a specific Bash command

With so many commands available at disposal from the Ubuntu / Linux Mint terminal, it can be useful to get a list of built-in commands supported by the Bash shell. (To get and idea about what a Linux shell is, refer to this brief overview of different shells in Linux  and to know how to use  various commands, refer to the Linux command line tutorial series).

For getting the list of Bash commands, open Terminal and type :

help

Built-in Bash commands in Ubuntu / Linux Mint

This will give a list of  all supported bash commands available.

Also, to know about a specific command from the list, simply use the help <commandname> syntax. Suppose to know more about what “cd” command does and how to use it effectively, simply do the following :

help cd

Using the help feature to know more about a specific Bash command

Also, it can be helpful to save this generated list in the form of a text file for reference. That can be done by redirecting the help command output to a text file (say “bashcommandlist.txt”) as follows :

Saving Bash commands list to a text file

The text file now will look like this :

Text file with redirected output from help command in Ubuntu / Linux Mint

Simple and easy to use, isn’t it? 🙂

Using the help command in a way is far simpler than the “man” (manual pages) for popular commands. (To know how man pages can be used, refer to this earlier primer on Linux man pages).

[By the way, Windows too has something similar so that all available commands can be listed. Here is how to do that.]

Enjoy the world of command line!

By admin

Related Post