【问题标题】:How to delete an empty folder with 2 times . (dot) file and .. (dot dot) file?如何用 2 次删除一个空文件夹。 (点)文件和..(点点)文件?
【发布时间】: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

【问题讨论】:

    标签: linux rm qnap


    【解决方案1】:

    fsck(文件系统一致性检查)解决了这个问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-02-10
      • 1970-01-01
      • 2021-08-30
      • 1970-01-01
      • 2014-06-23
      • 2011-05-03
      • 1970-01-01
      相关资源
      最近更新 更多