linux_wiki:bash_history

This is an old revision of the document!


Bash History

General Information

Bash configuration to make history more usable.


bashrc changes

Changes to ~/.bashrc

# Append to history, don't over write
shopt -s histappend
 
# Increase history size
HISTSIZE=100000
 
# Ignore duplicate lines and lines that start with a space
HISTCONTROL=ignoreboth
 
# Format history with full date and time
HISTTIMEFORMAT='%F %T '
 
# Save history after each command
PROMPT_COMMAND='history -a'

Section 1, sub-content.


  • linux_wiki/bash_history.1572916867.txt.gz
  • Last modified: 2019/11/04 20:21
  • by billdozor