http://scotgate.org/2007/03/04/howto-find-broken-symbolic-links-gentoo-linux-wiki/

HOWTO Find broken links – Gentoo Linux Wiki

I was trying to find some broken links. however, although using
find . -type l

shows all links, it does nto use the cool flashing RED that BASH can do to shwo a broken links. So doing a quick Google turned me to this Gentoo howto: Nice n easy!
find . -type l | (while read FN ; do test -e "$FN" || ls -ld "$FN"; done)

 

下面的评论中有这条:

This seems a bit more direct:

find -L . -type l

May 1st, 2007 at 1:11 am. Permalink.

UniIsland replied:

 

终于知道如何去解决这个问题了。

这样以后就可以先lndir ../src; find -L . -type l来维护一份影子代码了

Advertisements