【发布时间】:2022-10-18 14:18:45
【问题描述】:
在 qnap nas 上,我有一个无法删除的文件夹。
该文件夹是空的,除了 4 个目录:2 次 a . (dot) 文件夹和 2 次 .. (dot dot) 文件夹。据我所知,这是不可能的。
有谁知道删除此文件夹的方法?
谢谢你。
[/share/CACHEDEV1_DATA/backup/comfoplus/2022-04-04-21.16.33] # ls -lai
total 72
100761657 drwxrws--- 3 admin 96 4096 2022-10-14 14:14 ./
100769284 drwxrws--- 126 96 96 36864 2022-10-07 07:46 ../
16351557 drwxrwxrwx 14 guest guest 16384 2022-10-04 21:15 x/
[/share/CACHEDEV1_DATA/backup/comfoplus/2022-04-04-21.16.33] # ls -lai x
total 56
16351557 drwxrwxrwx 14 guest guest 16384 2022-10-04 21:15 ./
16351557 drwxrwxrwx 14 guest guest 16384 2022-10-04 21:15 ./
100761657 drwxrws--- 3 admin 96 4096 2022-10-14 14:14 ../
100761657 drwxrws--- 3 admin 96 4096 2022-10-14 14:14 ../
[/share/CACHEDEV1_DATA/backup/comfoplus/2022-04-04-21.16.33] # rm -rf x
rm: can't remove 'x': Directory not empty
关于 nas:
[/share/CACHEDEV1_DATA/backup/comfoplus/2022-04-04-21.16.33] # uname -a
Linux S203NASR1L 5.10.60-qnap #1 SMP Tue May 31 05:39:59 CST 2022 x86_64 GNU/Linux
【问题讨论】: