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.
history
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:
history 25
The following example is used to call the commands in the history list using the number associated with the command:
30 ls
!30
Comments
0 comments
Article is closed for comments.