Files and Data: Checking, Recovery and Locks
How to determining who has a file open (Unix OS).
The Unix ‘fuser’ command will, when properly qualified, let you know what processor id and user’s login id. For example:
Fuser –u /user/appx/data/VV/AAA/Data/Bugvar.dat
Yields…
/user/appx/Data/VV/AAA/Bugvar.dat: 15846(tom) 18211(appx)
The –u parameter tells Unix to supply the users login id. The names have been changed to protect the innocent.