history
history
command is used to view the previously executed command. Every command executed is treated as the event and is associated with an event number using which they can be recalled and changed if required. These commands are saved in a history file.
It has the below syntax: $ history
Visit the following resources to learn more: