Advertisement
Tritonio

How to find all symlinks that target/link to a file

Aug 26th, 2022
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.08 KB | None | 0 0
  1. find /home/ -type l -exec readlink -nf {} ';' -exec echo " -> {}" ';' | grep "/target"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement