timestamps in history command

to get the history command to print the time each command was executed next to each line, add this line to your .bashrc file:
export HISTTIMEFORMAT="%D %T "

~ by azimout on March 18, 2008.

Leave a Reply