```shell echo 'HISTTIMEFORMAT="%F %T "' >> ~/.bashrc && source ~/.bashrc && history ``` - 关键字:linux history command time - 参考链接:[How to see time stamps in bash history?](https://askubuntu.com/questions/391082/how-to-see-time-stamps-in-bash-history)