How do you find the symbolic links to files.
Michael J. Chinni, SMCAR-CCS-E
mchinni at pica.army.mil
Tue Nov 27 08:46:41 AEST 1990
In article <BZS.90Nov21184414 at world.std.com> bzs at world.std.com (Barry Shein) writes:
>
>>> How do you find the # of and locations of all links to a file?
>>
> % ls -i foo
> 4924 foo
> % find /mount-point -inum 4924 -print
Did I miss something here? I thought the original poster wanted to find all
links (hard AND symbolic). The method shown above I always thought only found
hard links since symbolic links have different inode numbers.
Is this right - this only finds hard links ?
If so, how would you find all symbolic links to the file ?
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
Michael J. Chinni
US Army ARDEC Picatinny Arsenal, New Jersey
ARPA: mchinni at pica.army.mil UUCP: ...!uunet!pica.army.mil!mchinni
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
More information about the Comp.unix.internals
mailing list