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 "

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 "
Leave a Reply