配置环境变量,实现执行history的时候可以看到执行命令的时间。
执行步骤
在 vim /etc/profile中新增一行,写入:HISTTIMEFORMAT='%F_%T ',保存退出。
1、vim /etc/profile
2. wq 保存退出

3. source /etc/profile
4.看效果

执行步骤
在 vim /etc/profile中新增一行,写入:HISTTIMEFORMAT='%F_%T ',保存退出。
1、vim /etc/profile
2. wq 保存退出

3. source /etc/profile
4.看效果
