开发者

deleting a directory in solaris,Ksh

开发者 https://www.devze.com 2022-12-25 03:20 出处:网络
rm -r /cbbco开发者_开发百科nfg/BRCH/tmp rm: cannot determine if this is an ancestor of the current working directory
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

精彩评论

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