I tried export HISTTIMEFORMAT='%D %T'
but it seems the time stamp of commands executed before I set HISTTIMEFORMAT will be the time I logged in current session. Is this normal? Is there any way to check when did the previous command executed? Thanks.
Asked
Active
Viewed 537 times
4

Dennis Williamson
- 62,149
- 16
- 116
- 151

Stan
- 1,387
- 6
- 24
- 40
1 Answers
2
That's normal. If HISTTIMEFORMAT
is set then the times are stored in history. If they're not stored then it has nothing to go on except the start time of the current shell.

Dennis Williamson
- 62,149
- 16
- 116
- 151
-
Well done on the 10k :) – Chopper3 May 02 '10 at 09:24