首页 > 技术文章 > Linux在bash history当中添加timestamp
dspace 2017-07-16 16:45 原文
执行以下两条命令即可
echo 'export HISTTIMEFORMAT="%y-%m-%d %T "' >> /etc/profile source /etc/profile