Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!wash08!rae98 From: rae98@wash08.uucp (Robert A. Earl) Newsgroups: comp.unix.questions Subject: Re: Finding links Keywords: ln Message-ID: <1989Oct19.145110.19682@wash08.uucp> Date: 19 Oct 89 14:51:10 GMT References: <598@cogent.UUCP> Reply-To: rae98@wash08.UUCP (Robert A. Earl) Organization: American Chemical Society, Washington, DC Lines: 25 In article <598@cogent.UUCP> doug@cogent.UUCP (Doug Perlich) writes: >I ocasionally have problems working in large project groups when someone >has a link (using ln) to a file. I can't find the file that the link(s) are >to. (Different name, different directory). >I want to type "findthelinktothefile foobar" >and it will respond "/path1/path2/.../abc/foobee" and any other names >linked to the file. >Thanks -Doug My SVR2 system has a utility called 'ncheck': ncheck - generate names from i-numbers SYNOPSIS /etc/ncheck [ -i numbers ] [ -a ] [ -s ] [ file-system ] So you would use 'ls -li file_name' to get the inode number of the file, then use '/etc/ncheck -i inum_of_file_name /dev/dsk/cur_file_system' to get a complete listing of the files in the current file system which share the inode (ie are linked together). This don't work for symbolic links, of course. -- =========================================================== Name: Bob Earl Phone: (202) 872-6018 (wk) UUCP: ...!uunet!wash08!rae98 BITNET: rae98@CAS