Bash History: Display Date And Time For Each Command

Just edit the file /etc/bashrc and append the following:

export HISTTIMEFORMAT=”%h/%d – %H:%M:%S “

Leave a comment