在 /etc/profile 最后添加
export HISTTIMEFORMAT='[%F %T]: '
export PROMPT_COMMAND='{ msg=$(history 1 | { read x y; echo $y; });logger -t audit "[euid=$(whoami)]":$(who am i):[$(pwd)]:"$msg";}'
alias crontab-l='cat /var/spool/cron/tabs/root /etc/cron.d/*.conf'
在 /var/log/messages 就可以看到你是操作记录了




相关文章:

  • 2021-11-01
  • 2021-12-24
  • 2021-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-23
  • 2022-01-27
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-05-13
  • 2021-12-23
  • 2021-08-10
  • 2021-12-15
  • 2021-08-21
相关资源
相似解决方案