How to View Past Commands in Linux

by | Dec 6, 2018

Option 1

Just repeatedly click up-arrow and scroll through all the commands

Option 2

The following will show you the past 500 commands in Bash.

   Bash Terminal



The path to the actual history file can be seen with the following command:

   Bash Terminal

$ echo $HISTFILE