Adding time to bash history
echo 'export HISTTIMEFORMAT="%F %T "' &gt;&gt; ~/.bashrc  Done! But apply only on new history...
Tags: bash, linux