Linux在bash history当中添加timestamp

执行以下两条命令即可

echo 'export HISTTIMEFORMAT="%y-%m-%d %T "' >> /etc/profile
source /etc/profile
原文地址:https://www.cnblogs.com/dspace/p/7190923.html