Multiplay Labs

tech hits and tips from Multiplay

Find and fix broken symlinks

without comments

Really simple one but useful nether-the-less to find broken symlinks

find -L <directory> -type l

And fix, remove them:

find -L <directory> -type l -print0 | xargs -0 rm

Written by Dilbert

March 20th, 2012 at 2:47 pm

Posted in FreeBSD

Leave a Reply

You must be logged in to post a comment.