Linux Tip of the Day - links that point to nothing
find / -type l -print |perl -nle ‘-e || print’;
This will look for all links that are dead and print it out. It can be piped to a file and unlink it later. It is wise to list the links first and save the output to a file. This is in case if the links are needed by users which remove those files temporary for testing or housekeeping.
Comments
One Comment on Linux Tip of the Day - links that point to nothing
-
Randall Edwards on
Thu, 13th Nov 2008 8:54 am
wiia7hb98m7udde8
Tell me what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!
