Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
up vote 2 down vote accepted

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.

share|improve this answer
Well done on the 10k :) – Chopper3 May 2 '10 at 9:24
@Chopper3: Thanks! – Dennis Williamson May 2 '10 at 10:27

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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