Re: Open by inode? (was Re: knfsd)

Riley Williams (rhw@bigfoot.com)
Thu, 7 Jan 1999 12:11:01 +0000 (GMT)


Hi Nick.

>> ...(along with a way to find the inode number of an unlinked
> but not yet deleted file through /proc).

> 2.2.0-pre4# ls -il /proc/[0-9]*/fd/* | grep ' (deleted)$'

Simpler still...

Q> ls -il /proc/*/fd/* | grep '(deleted)'

Only process directories have an fd subdirectory, and even if they
didn't, grep would get rid of the rest...

Best wishes from Riley.

---
 * ftp://ps.cus.umist.ac.uk/pub/rhw/Linux
 * http://ps.cus.umist.ac.uk/~rhw/kernel.versions.html

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/