Get a List of Commands in Linux From the System

If you want to have a list of all commands that you can use on a Linux machine, try one of the following:

compgen -b

gives you a list of built-in commands.


gives you a list of all commands.

Since the lists are long, you need to use | more at the end of each command to be able to go through the list easily, like the following,

compgen-c | more