Bash history command is one of the things I like the most using the terminal. I usually type just a few characters before i trigger the autocomplete with pgUp/pgDn keys.
However they are times when I wonder which commands were executed at what date/time. By default ()(that also depends on the distribution you are using) history displays just sequential numbers in front of commands. The following adds HISTTIMEFORMAT to profile and enables time and date printing to bash history.
cat <<EOF >> /etc/profile
# HISTORY FORMAT WITH DATE
export HISTTIMEFORMAT="%d/%m/%y %T "
EOF
source /etc/profile
Don’t be surprised when you run history command again – all the previous entries will have the same date/time.







