#!/bin/bash # find all links in the fs, that link to a specific target: find / -type l -exec readlink -nf {} ';' -exec echo " -> {}" ';' | grep "/bin/bash"