![为什么 /var/spool/abrt/ 文件夹没有被删除](https://linux22.com/image/165367/%E4%B8%BA%E4%BB%80%E4%B9%88%20%2Fvar%2Fspool%2Fabrt%2F%20%E6%96%87%E4%BB%B6%E5%A4%B9%E6%B2%A1%E6%9C%89%E8%A2%AB%E5%88%A0%E9%99%A4.png)
我们尝试删除所有 abrt 文件夹,如下所示(在 redhat Linux 机器上)
find /var/spool/abrt/* -type d -exec abrt-cli rm '{}' \;
rm '/var/spool/abrt/ccpp-2018-09-03-14:52:11-5653'
rm '/var/spool/abrt/ccpp-2019-03-26-12:18:52-31410'
rm '/var/spool/abrt/ccpp-2019-04-07-05:50:25-16907'
rm '/var/spool/abrt/ccpp-2019-10-29-14:20:46-20059'
pwd
/var/spool/abrt
但我们仍然看到文件夹和文件夹内容为
ls -ltr /var/spool/abrt
total 24
-rw------- 1 root root 70 Nov 5 09:43 last-ccpp
-rw-------. 1 root root 48 Dec 9 03:25 last-via-server
drwx------ 2 root root 4096 Dec 9 18:45 ccpp-2018-09-03-14:52:11-5653
drwx------ 2 root root 4096 Dec 9 18:45 ccpp-2019-03-26-12:18:52-31410
drwx------ 2 root root 4096 Dec 9 18:45 ccpp-2019-04-07-05:50:25-16907
drwx------ 2 root root 4096 Dec 9 18:45 ccpp-2019-10-29-14:20:46-20059
为什么 abrt-cli rm
不删除文件夹?
来自 abrt.conf
grep -v "^#" /etc/abrt/abrt.conf
MaxCrashReportsSize = 1000
DeleteUploaded = no
AutoreportingEvent = report_uReport
AutoreportingEnabled = no
PrivateReports = yes