Accessing files by inode #s

Scott E. Schwartz schwartz at gondor.cs.psu.edu
Sun Jan 31 11:51:31 AEST 1988


In article <530 at celerity.UUCP> jjw at celerity.UUCP (Jim (JJ) Whelan) writes:

>>          find <path> -inum <inode> -exec <command> \;

>The find will traverse file mount points so you may locate files in file
>systems other than the one you are interested in.  Be especially careful
>with using "rm -f" as the command.

If you are playing with "-inum" it is probably a good idea to use "-xdev" 
also, if you want to prevent find from traversing other filesystems. 
Do all versions of find support -xdev?  4.3BSD and SunOS3.4 find have it,
at any rate.


-- Scott Schwartz            schwartz at gondor.cs.psu.edu



More information about the Comp.unix.questions mailing list