Where Is the Bash History File in Linux?
Contents

In Bash, your command history is stored in a file ( . bash_history ) in your home directory.

Where is bash history stored in Linux?

The bash shell stores the history of commands you’ve run in your user account’s history file at~/. bash_history by default. For example, if your username is bob, you’ll find this file at /home/bob/.

Where is history stored in Linux?

More Linux resources

These previously issued commands (known as your history list) are stored in your history file. Its default location is ~/. bash_history , and this location is stored in the shell variable HISTFILE .

David Miller

David Miller

Executive Financial & Market Analyst

David Miller brings 15 years of experience in global economics, personal finance strategy, and market dynamics. He specializes in turning complex economic trends into actionable insights for everyday readers.

Share this article
Twitter Facebook Pinterest