How to find broken symlinks
The portable way to find broken symbolic links, including cyclic links, is:
find /path/to/search -type l -exec test ! -e {} \; -print
Via stackexchange.com.
To understand the options above, check out this explanation from explainshell.com.
Leave a comment