#1001296 Add timestamps to bash history entries (by default)

Package:
bash
Source:
bash
Description:
GNU Bourne Again SHell
Submitter:
mYnDstrEAm
Date:
2021-12-07 23:12:04 UTC
Severity:
normal
#1001296#5
Date:
2021-12-07 23:09:04 UTC
From:
To:
The timestamps would not get displayed when entering the history command (only when entering e.g. history -t). Having timestamps (that are enabled by-default) of when the commands were run can be useful for many reasons like reconstructing what caused a problem in the past. I'm surprised this hasn't been implemented yet. For example, I recently noticed that bash_history entries were missing and via backups could determine the timespan during which it happened. Having timestamps in the bash_history would allow one to easily find the commands entered quickly before the history was lost.