Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

1 Answer 1

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
add comment

Your Answer

 
discard

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.