In Linux how do I find all soft links that link to a specific target directory or file?
相关问题
- How to get the return code of a shell script in lu
- Is shmid returned by shmget() unique across proces
- how to get running process information in java?
- Invoking Mirth Connect CLI with Powershell script
- Error building gcc 4.8.3 from source: libstdc++.so
Use
find
with-samefile
and-L
option, like this:You could use
find
's-lname
argument:What R1tschY sez, with an addition:
so
TARGET
won't be included in the result. (The backslash is required in bash so the!
won't be interpreted as a history directive.)