Linux在bash history当中添加timestamp

执行以下两条命令即可

echo 'export HISTTIMEFORMAT="%y-%m-%d %T "' >> /etc/profile
source /etc/profile
posted @ 2017-07-16 16:45  乔栋  阅读(306)  评论(0编辑  收藏  举报