配置环境变量,实现执行history的时候可以看到执行命令的时间
时间:
2020-06-14 10:47:35
阅读:
58
评论:
收藏:
0
[点我收藏+]
1、修改/root/.bash_profile
vim .bash_profile
在文件末尾加上
HISTTIMEFORMAT="%F %T "
2、重新读取文件
source .bash_profile
3、验证

配置环境变量,实现执行history的时候可以看到执行命令的时间
原文:https://blog.51cto.com/7300015/2504395