Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

As per title. I've noticed du and find commands can never finish but directory structure is very complex to search for loops etc by hand. I suspect there is one wrongly placed symlink there. Is there a tool to help find the source of problem?

share|improve this question
up vote 1 down vote accepted

TLDR: find -L -type l /start/here will report broken links in GNU/Linux

From 'info find' in Linux:

‘-type’ reports the types of the files that symbolic links point to. This means that in combination with ‘-L’, ‘-type l’ will be true only for broken symbolic links.’

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.