How to get a list of commands entered in bash: history.
20 Jun 2023Today I learned about the history
command. To get all of the options, type help history
. Want to see a file of the history? That’s ~/.bash_history
.
This StackExchange post has some good information concerning when the history is written to ~/.bash_history
, and how you can alter that behavior SE.