Quantcast
Channel: How can I find broken symlinks - Unix & Linux Stack Exchange
Viewing all articles
Browse latest Browse all 14

Answer by Nikita Zlobin for How can I find broken symlinks

0
0

Most comprehensive (imho) command to find broken symlinks without crossing partition bounds. Note, that symlink arguments must be containing directories, not symlinks themselves.

find . -xdev -type d \| stdbuf -oL xargs -d '\n' symlinks \| stdbuf -oL grep -e '^dangling'

Viewing all articles
Browse latest Browse all 14

Latest Images

Trending Articles





Latest Images