linux_wiki:bash_history

Differences

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

Link to this comparison view

Next revision
Previous revision
linux_wiki:bash_history [2019/11/04 20:15]
billdozor created
linux_wiki:bash_history [2019/11/04 20:21]
billdozor
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
-</code> 
  
-===== Sub-section Title =====+# Format history with full date and time 
 +HISTTIMEFORMAT='%F %T '
  
-Section 1, sub-content.+# Save history after each command 
 +PROMPT_COMMAND='history -a' 
 +</code>
  
 ---- ----
  
  • linux_wiki/bash_history.txt
  • Last modified: 2019/11/04 20:21
  • by billdozor