I have a file system where one or more symlinks exist to a file. Is there a way to go thru each file and determine where all the symlinks that point to it on the file system are?
OS is Ubuntu 9.10 Linux
|
I have a file system where one or more symlinks exist to a file. Is there a way to go thru each file and determine where all the symlinks that point to it on the file system are? OS is Ubuntu 9.10 Linux
| |||||
feedback
|
|
You can use good old find / -lname '/path/to/linked/file' 2> /dev/null For a more intricate approach, you can use the inode number of the file (retrieve from find / -follow -inum 123456 2> /dev/null | |||||||
feedback
|