4 examples for history

{{ score }}
  # Displays all previous commands run from this user containing the phrase "execute".  Numbers each command.  You can then run one of the commands by typing !number
$ history | grep -i execute
675 ./executeShellCommand
678 ./transferFiles -o LARGE
$ !678
#runs ./transferFiles -o LARGE
        
{{ score }}
  # Show most used commands
history | awk '{a[$2]++}END{for(i in a){print a[i] " " i}}' | sort -rn | head
        
{{ score }}
  # Write all commands executed in your current shell to your history file
history -a
        
{{ score }}
  # clear the history list by deleting all of the entries
history -c