Blog Archives

Find Trick: Print The Broken Symlinks

This find oneliner displays all the broken links in the current directory. By adding xargs rm, you can delete all the broken links found. Find all the broken links: $ find . -type l -exec sh -c “file -b {}

Tagged with: , , , , ,
Posted in The Linux and Unix Articles!


Subscribe to get the latest Linux news and how to guides directly on your e-mail!