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.
这样以后就可以先lndir ../src; find -L . -type l来维护一份影子代码了