*BSD News Article 26683


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!decwrl!envoy.wl.com!caen!batcomputer!cornell!rochester!udel!gatech!howland.reston.ans.net!cs.utexas.edu!uunet!gumby!andrews-cc!gillham
From: gillham@andrews.edu (Andrew Gillham)
Newsgroups: comp.os.386bsd.questions
Subject: How to find list of open files?
Date: 28 Jan 1994 22:29:45 GMT
Organization: Andrews University
Lines: 20
Message-ID: <2ic3kp$39o@orion.cc.andrews.edu>
NNTP-Posting-Host: edmund.cs.andrews.edu


Does anyone have any good ideas on how to get a list
of currently 'open' files on i386 BSD systems?
(or any UNIX box for that matter?)
I would guess that you could find the file descriptor
table in kernel memory and somehow read that, but as I don't
know anything about that, I'm stuck!

Anyway, maybe this 'top' thing does it?
It's not real important, I'm just kind of curious.

Thanks!!

-Andrew

-- 
#!/bin/sh - ==============================================
echo "Andrew Gillham                 gillham@andrews.edu"
echo "Winix Hacker                   usrvnp86@ibmmail.com"
#=========================================================