How do you find the symbolic links to files.
John Quinn
jquinn at uk.oracle.com
Mon Nov 26 19:22:14 AEST 1990
bzs at world.std.com (Barry Shein) writes:
>>> How do you find the # of and locations of all links to a file?
>>
>> This is an easy one. You cannot.
>>
>> Well, sort of. You cannot determine which hard links to a file exist
>>without examining all the directories in a given file system, looking for
>>the specific inode of the file in question. Does anyone know of a tool to
>>do this?
> % ls -i foo
> 4924 foo
> % find /mount-point -inum 4924 -print
>--
> -Barry Shein
>Software Tool & Die | {xylogics,uunet}!world!bzs | bzs at world.std.com
>Purveyors to the Trade | Voice: 617-739-0202 | Login: 617-739-WRLD
ncheck is the tool for the job.
John D. Quinn.
More information about the Comp.unix.internals
mailing list