2010-03-29 96 views
1
rm -r /cbbconfg/BRCH/tmp 
rm: cannot determine if this is an ancestor of the current working directory 

回答

1

rm对是否删除作为当前工作目录一部分的目录感到困惑。检查是否有链接或导致此问题的原因。

+0

任何想法我怎么能在这里进行.. – flash 2010-03-29 12:36:48

+0

尝试运行'rm -fr' – ghostdog74 2010-03-29 13:18:12

1

从我记得这是一个古老的错误在Solaris 10操作系统

啊,哈。

看看这个OpenSolaris bug report

如何试图使用find递归删除?可能是这样的:

find /cbbconfg -depth -exec rm -rf {} \; 
+0

您指定的命令没有帮助。 – flash 2010-03-29 11:11:35

+0

) - :我只是在sol10_3服务器上使用它,它工作。 – 2010-03-29 11:43:03

0

我已经用下面的方法解决了它!我已经移动到该目录并运行命令:D