If I have a specific file in a UNIX filesystem, is there a way to use bash to find all links to that file, both symbolic and hard? If I need different commands for each, what are they?
Try this with GNU
You could use
If you don't have GNU Find you can do this:
But it won't work for symbolic links.