I'd like to check at what time/date a command in bash history was executed. Is this possible?
Tell me more
×
Super User is a question and answer site for
computer enthusiasts and power users. It's 100% free, no registration required.
|
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
See 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. |
|||||||||||||
|