How to search for files that are symbolic links pointing to a particular file?
Eg. Both /home/user1/file1 and /home/user2/file2 are files that are symbolic links to /etc/init.d/testscript.
Is there a command that can search for all files that are symbolic links pointing to /etc/init.d/testscript? For this example, results should be returning /home/user1/file1 and /home/user2/file2. Thanks. |
You can try something like this:
Code:
find / -type -l | while read link ; do Greetings, Benjamin |
All times are GMT -5. The time now is 06:10 PM. |