Location of the Bash command history

$HISTFILE defines the path to the file, where Bash stores its command history. The default value is ~/.bash_history.

Examples

Store the history in ~/.history :

1
HISTFILE=~/.history
BashSupport Pro is a Bash IDE with support for $HISTFILE – try it now!
© 2020–2022 Joachim Ansorg
Imprint
Privacy Policy
Legal