How to View Past Commands in Linux

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


$ cat $HISTFILE

 

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

   Bash Terminal


$ echo $HISTFILE

Pin It on Pinterest

Share This