There is really no direct way to check for such symbolic links. Note that you may have a file system that is not permanently mounted (for example, an external USB drive), which may contain symbolic links to another volume in the system.
You can do something with:
for a in `find / -type l`; do echo "$a -> `readlink $a`"; done | grep destfolder
I note that FreeBSD find does not support the -lname parameter, so I ended up above.
Greg Hewgill Sep 19 '08 at 7:19 2008-09-19 07:19
source share