4

How to find broken symlinks

 1 year ago
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.
neoserver,ios ssh client

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.

Tags: nix til

Categories: til

Updated: October 26, 2022

Previous Next

You May Also Enjoy


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK