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?
Asked
Active
Viewed 134 times
1

Alex
- 1,828
- 4
- 31
- 52
1 Answers
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.’

erch
- 126
- 10