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
![](../../users/profiles/93816.webp)
Alex
- 1,768
- 4
- 30
- 51
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.’
![](../../users/profiles/180831.webp)
erch
- 126
- 10