find / -lname '/path/you/are/looking/for/*'
Note that the -lname option is a GNU find extension and may not work with other find implementations.
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
find / -lname '/path/you/are/looking/for/*'
Note that the -lname option is a GNU find extension and may not work with other find implementations.
I think it's easier the other way round, find all symlinks and grep the directory you want to move from results.
Something like 'find /home/user -type -l -exec ls -l {} ; | grep yourdirectory' and work from there. I don't think there's an easy way to list which symlinks point to any actual file.
You could just move the dir and leave a symlink in its place. It doesn't solve the actual problem, but it's much easier and will keep everything working just fine.
If you just rename the dir, and then find all broken symlinks in your system?
find . -xtype l