开发者

deleting a directory in solaris,Ksh

rm -r /cbbco开发者_开发百科nfg/BRCH/tmp
rm: cannot determine if this is an ancestor of the current working directory


rm is confused as to whether you are removing a directory that is part of the present working directory. check to see if there is a link or something that is causing this.


From what I remember this is an old bug in Solaris 10.

Ah-ha.

Have a look at this OpenSolaris bug report.

What about trying to do the delete recursively using find? Maybe something like:

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


I have solved it in the following way!! I have moved to that directory and ran the command :D

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜