≡ Menu

Investigate User Activity

Question: How do I find out what time I executed a command previously on Unix OS? The history command doesn’t display timestamp. Answer: Set HISTTIMEFORMAT as shown below. Please note that there is a space before the last single-quotes. $ export HISTTIMEFORMAT='%F %T ' After the above setting, history command will display timestamp in front [...]

{ 8 comments }