Wednesday, August 8, 2012

Find broken symbolic links

To list the symbolic links along with where they point to:

     find -L /PATH/TO/SEARCH -type l -exec ls -l {} \;  

Omitting  -exec ls -l {} \;  will just list the link name.

Other references: http://how-to.wikia.com/wiki/How_to_find_broken_symbolic_links

No comments:

Post a Comment