LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   LinuxAnswers Discussion (http://www.linuxquestions.org/questions/linuxanswers-discussion-27/)
-   -   DISCUSSION: See Open Files (http://www.linuxquestions.org/questions/linuxanswers-discussion-27/discussion-see-open-files-525881/)

jeremy 02-05-2007 05:39 PM

DISCUSSION: See Open Files
 
This thread is to discuss the article titled:
See Open Files

Quote:

Tech Support Written by Jeremy Garcia Sunday, 15 January 2006 One of the unique things about Unix and Linux is that everything is a file. Of course, there are many different kinds of files, including regular files, directory files, and device files. Even interprocess communication mechanisms, such as pipes and semaphores, are files. Because everything is a file, a running system has a very large number of open files at any given point in time. What if you want to know what files are open, what files a specific process has open, what files on a specific device are open, or what files a specific user has open? Enter List Open Files, or lsof, which can do this and more. lsof was written by Victor Abell and is available from http://people.freebsd.org/~abe/. You can also install lsof on Debian with the quick apt-get install lsof.

wjevans_7d1@yahoo.co 02-05-2007 06:31 PM

If you want to get under the hood and tinker with this stuff yourself as a programmer, try this at the command prompt:

Code:

ls -l /proc/$$/fd
and start exploring from there.


All times are GMT -5. The time now is 04:00 AM.