>>>>> "S" == S Derman <S> writes:
S> This there a way with UNIX to locate a file by inode if you know the
S> inode information?
Yes. Use the find command, like
siwenna% cd /etc/X11/fs
siwenna% ls -li
total 8
142831 -rw-r--r-- 1 root root 1562 Jul 1 08:11 config
109865 -rw-r--r-- 1 root root 1460 Oct 1 2002 config~
siwenna% df
Filesystem Size Used Avail Use% Mounted on
/dev/md0 16G 6.7G 9.1G 43% /
/dev/sda1 699M 41M 658M 6% /boot
siwenna% find / -inum 142831 -print
/etc/X11/fs/config
The catch is, you should give the root of the filesystem as the starting
point, since each filesystem has its own inode numbers.
--
Arto V. Viitanen [email]avcs.uta.fi[/email]
University of Tampere, Department of Computer and Information Sciences
Tampere, Finland [url]http://www.cs.uta.fi/~av/[/url]
Bookmarks