Thursday, March 24, 2011

Broken symlinks

Handy oneliner:
find / -type l ! -exec test -r {} \; -print

and slower version but with missing target
find . -type l | while read i ; do test -e $i || ls -l $i; done

No comments:

Post a Comment