History - Debian add timestamp

From Skytech
Jump to navigation Jump to search

Add timestamp in history data on debian

Edit /etc/bash.bashrc Add

export HISTTIMEFORMAT="%Y-%m-%d_%H:%M:%S "

At the end.