vi ~/.profile

增加

HISTTIMEFORMAT="%F %T `whoami` `who am i|awk '{print $1,$5}'|sed 's/ (/@/'|sed 's/)//'`"

然后  source ~/.profile 

再执行history就有时间和作者了

相关文章:

  • 2021-10-29
  • 2022-12-23
  • 2022-02-07
  • 2022-12-23
  • 2022-02-07
  • 2022-12-23
  • 2022-02-02
猜你喜欢
  • 2021-08-24
  • 2022-12-23
  • 2022-12-23
  • 2021-12-05
  • 2022-12-23
  • 2021-11-04
相关资源
相似解决方案