The command HISTORY will show on your terminal the last 50 commands that you have executed. Use this to find commands that you want to repeat with the % substitution character.
The output from HISTORY can be redirected. As an example:
prints the recent command history to the file history.txt in your
current working directory.