How do you find the symbolic links to files.

Barry Shein bzs at world.std.com
Thu Nov 22 11:44:14 AEST 1990


>>    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



More information about the Comp.unix.internals mailing list