ClamAV 命令行最佳实践

时间:2021-04-30 22:53:26

标签: linux shell cron clamav

clamtk GUI 起初很棒,但现在我想对这个过程进行更直接的管理。我正在切换到命令行,我想出了以下从 sudo crontab 运行 @daily 的方法。

systemctl stop clamav-freshclam > clam.log 
wait 
freshclam >> clam.log
wait 
systemctl start clamav-freshclam >> clam.log
wait 
clamscan --infected --detect-pua=yes --recursive / >> clam.log

这种简化的方法有什么明显的问题或建议吗?

0 个答案:

没有答案