1:配置 history 命令查询历史操作命令记录时显示操作时间
1):编辑文件: /etc/profile
2):在文件末尾添加以下行并保存: export HISTTIMEFORMAT="%F %T "
3):重新加载配置:source /etc/profile