Linux / Unix Bash Shell List All Builtin Commands

Linux / Unix Bash Shell List All Builtin Commands

To list all builtin commands in Bash, you can use the help builtin command.

The help builtin command displays information about builtin commands, and can be used with or without a command name.

To list all builtin commands, you can use the help command without any arguments, like this:

help
Source:ww‮tual.w‬turi.com

This will display a list of all builtin commands, along with a brief description of each command.

You can also use the help command with a command name to display detailed information about a specific builtin command.

For example, to display information about the cd builtin command, you can use the following command:

help cd

This will display the syntax and usage of the cd command, along with a detailed description of its options and behavior.

You can use the type builtin command to determine whether a command is a builtin or an external command. For example:

type cd

This will display the type of the cd command, along with its location. If the cd command is a builtin, the output will be cd is a shell builtin. If the cd command is an external command, the output will be the path to the command, such as cd is /bin/cd.

Keep in mind that the builtin commands are specific to the shell, and may vary between different shells and shell implementations. The list of builtin commands may also change depending on the shell configuration and the environment.

Created Time:2017-10-29 22:08:57  Author:lautturi