How to View Past Commands in Linux
Just repeatedly click up-arrow and scroll through all the commands
The following will show you the past 500 commands in Bash.
$ cat $HISTFILE
The path to the actual history file can be seen with the following command:
$ echo $HISTFILE