I just (hopefully) finished debugging my SqueezeCenter install somehow adding ~300,000 files to my library…symbolic links. While usually they are awesome and save time as typing
cd /www
is much easier than
cd /usr/local/www/htdocs
ha.
So, to locate all symbolic links in the current directory and any directories under that:
find */* -type l
That should do it! Note that that is a lowercase “L” and not a “one”. This should make it easier if you have a terrible recursion problem with some script following links and don’t feel like fixing the actual script, or in this case, a fairly large perl program AKA slimserver.