Quantcast
Viewing latest article 11
Browse Latest Browse All 14

How can I find broken symlinks

Is there a way to find all symbolic links that don't point anywere?

find ./ -type l

will give me all symbolic links, but makes no distinction between links that go somewhere and links that don't.

I'm currently doing:

find ./ -type l -exec file {} \; | grep broken

But I'm wondering what alternate solutions exist.


Viewing latest article 11
Browse Latest Browse All 14

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>