I'd like to check at what time/date a command in bash history was executed. Is this possible?
It is possible. The
I set the variable for my user like this (on Ubuntu):
If you want it globally then add the line to
The ouput of
P.S. When you set the variable the first time then the entire history will get the time stamp of the moment the variable was set.
|show 4 more comments|