finding the missing links
Michael R. Johnston
mikej at lilink.UUCP
Thu Jun 1 22:00:09 AEST 1989
In article <207 at flattop.UUCP> rcm at flattop.UUCP (Ron McDowell) writes:
>
>$ echo "hello world" > $HOME/xxx ; ln xxx /tmp/yyy ; ln xxx /usr/tmp/zzz
>
>I do a 'ls -l /tmp' and see that yyy has 3 links. How can I find the other
>two files?
The simplest way I know of is to say:
ls -i xxx [command returns inode #]
ncheck -i inode_number
This will return the paths to all the files that share the same inode #.
--
Michael R. Johnston
System Administrator rutgers!lilink!mikej
LILINK Public Access Xenix (516) 872-2137/2138/2349 1200/2400 Login: new
More information about the Comp.unix.questions
mailing list