4

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.

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.

  • Well done on the 10k :) – Chopper3 May 2 '10 at 9:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.