linux_wiki:bash_history

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Last revision Both sides next revision
linux_wiki:bash_history [2019/11/04 20:15]
billdozor created
linux_wiki:bash_history [2019/11/04 20:21]
billdozor [bashrc changes]
Line 19: Line 19:
 # Ignore duplicate lines and lines that start with a space # Ignore duplicate lines and lines that start with a space
 HISTCONTROL=ignoreboth HISTCONTROL=ignoreboth
 +
 +# Format history with full date and time
 +HISTTIMEFORMAT='%F %T '
 +
 +# Save history after each command
 +PROMPT_COMMAND='history -a'
 </code> </code>
  
  • linux_wiki/bash_history.txt
  • Last modified: 2019/11/04 20:21
  • by billdozor