Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
linux_wiki:bash_history [2019/11/04 20:15] billdozor created |
linux_wiki:bash_history [2019/11/04 20:21] (current) 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 | ||
- | </ | ||
- | ===== Sub-section Title ===== | + | # Format history with full date and time |
+ | HISTTIMEFORMAT='%F %T ' | ||
- | Section 1, sub-content. | + | # Save history after each command |
+ | PROMPT_COMMAND=' | ||
+ | </ | ||
---- | ---- | ||