On Sat, 27 Sep 2003 19:28:58 -0400 TK <[EMAIL PROTECTED]> wrote: > Let's say file A1 and A2 are symbolic links to file R. Is there a way to > tell which files are linked to R by examing file R only (stat doesn't > seem to reveal anything, but I noticed hard link will increase the Links > number), instead of searching through all the files in the FS?
Only way to find them is to search. > Especially if the FS containing A2 is not mounted yet. This is one case where you can't use a hard link and symbolic links are useful. > Or symbolic link is a one-way knowledge that only A2 knows about it but > R has no clue at all? Correct, the symbolic link holds a pointer (ie. the path) to the target. The target knows nothing about any symbolic links referencing it. Sean. -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list