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 "

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*