add timestamp to bash history?

wish to add timestamp to bash history?


$ echo 'export HISTTIMEFORMAT="%F %T "' >> /etc/bashrc

Logout and re-login, and you shall be able to see timestamp on your "history" command.

No comments: