Linux配置相关

 

1:配置 history 命令查询历史操作命令记录时显示操作时间

  1):编辑文件: /etc/profile

  2):在文件末尾添加以下行并保存:  export HISTTIMEFORMAT="%F %T "

  3):重新加载配置:source /etc/profile

posted @ 2024-11-05 11:05  zagwk  阅读(9)  评论(0)    收藏  举报