oneliners/bash/find_links_to_target.sh

5 lines
157 B
Bash
Raw Normal View History

2021-01-24 15:48:33 +01:00
#!/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"