Linux在bash history当中添加timestamp

执行如下两条命令便可bash

echo 'export HISTTIMEFORMAT="%y-%m-%d %T "' >> /etc/profile
source /etc/profile
相关文章
相关标签/搜索