2010-03-29 74 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