Linux在bash history当中添加timestamp时间:2024-05-02 02:27:47执行以下两条命令即可 echo 'export HISTTIMEFORMAT="%y-%m-%d %T "' >> /etc/profile source /etc/profile