During the course of your workflow, you may find yourself wondering what commands you have previously run. To view the history of Bash commands used, simply enter the history command.
By default, the history command will show you the last 500 commands you have entered. If you only want to view the last 10 commands, just enter the following:
history | tail
You can also view the last 25 commands:
The following example is used to call the commands in the history list using the number associated with the command: