How to get a list of commands entered in bash: history.

bash linux

Today 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.

© Amy Tabb 2018 - 2023. All rights reserved. The contents of this site reflect my personal perspectives and not those of any other entity.