$ export HISTTIMEFORMAT="%F %T "
History usually only gives the command number and the command. This will add a timestamp to the history file.
Note: this will only put the correct timestamp on commands used after the export is done. You may want to put this in your .bashrc
Submitted by fritz_monroe
Options:
commandlinefu.com by David Winterbottom
0sem comentários ainda