I turned on the time logging flags for .bash_history (HISTTIMEFORMAT='%F %T '
) and as expected, when I checked history
, I was able to see the time at which commands were executed, up to a point. And all the logs before that reflect the same value for time.
In the snapshot below, proceeding in the reverse direction, all commands upto and including command 500 reflect the correct times. Command 500 was executed at 12:54:50 and that value has been used for all the commands preceding it.
It seems by design, like maybe a threshold has been set. But can anyone confirm that or explain this behavior better?
Update -
As described in the comment below, triggered by @Terrance's reply, I tried starting a new terminal instance and the rest of the explanation is as in the comment. Here's a snapshot of this new observation -