Month: August 2019

Put A TimeStamp on Bash History

Sometimes, it is very helpful to have a timestamp on bash history, that way it’s easier to know the exact time a command was executed.

To put a timestamp on history, run the following command;

HISTTIMEFORMAT="%d/%m/%y %T "

That’s all. Next time you run the history command, the history will display with timestamp.

Hope someone finds it useful.