How to find broken symlinks
source link: https://proinsias.github.io/til/how-to-find-broken-symlinks
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Francis T. O'Donovan
Senior Data Science Manager at Hospital IQ – Planet discoverer, researcher, developer, geek.
How to find broken symlinks
less than 1 minute read
The portable way to find broken symbolic links, including cyclic links, is:
find /path/to/search -type l -exec test ! -e {} \; -print
Via stackexchange.com.
To understand the options above, check out this explanation from explainshell.com.
Categories: til
Updated: October 26, 2022
You May Also Enjoy
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK