How can I find out which user or process has a file open or is using a particular file system (so that I can unmount it?
Use fuser (system V), fstat (BSD), ofiles (public domain) or pff (public domain). These programs will tell you various things about processes using particular files. A port of the 4.3 BSD fstat to Dynix, SunOS and Ultrix can be found in archives of comp.sources.unix, volume 18. pff is part of the kstuff package, and works on quite a few systems. Instructions for obtaining kstuff are provided in question 3.10.
Related Questions
- What if a user is currently employing Honeywell’s Uniformance® PHD system for a process. Does Operating Instructions work with it?
- How can I find out which user or process has a file open or is using a particular file system (so that I can unmount it?
- Are the particular components of the Website administered in the File System or in the Database?