I've just read:
How to find all symbolic links pointing to any file/directory inside a given directory
but that is pretty slow. Now, on typical Linux systems, a filesystem database-of-sorts is maintained, which can be searched using locate
, rather than iterating the entire filesystem.
Is it possible to utilize that database - as-is or with a tweak to the search procedure - to get symlinks pointing into a given directory? Or symlinks in general?