Fragsworth Asked: 2009-10-05 18:02:22 +0800 CST2009-10-05 18:02:22 +0800 CST 2009-10-05 18:02:22 +0800 CST How can I see which processes locked a file? 772 How do you find out which processes have a lock on a given file, in Linux? linux 3 Answers Voted Best Answer Teddy 2009-10-05T18:19:22+08:002009-10-05T18:19:22+08:00 In addition to lslk, you could also try lsof. dogbane 2009-10-05T23:35:26+08:002009-10-05T23:35:26+08:00 Try fuser In the example below, I have run fuser against a jar file and it has shown me the pids for the processes using the jar. $ fuser app.jar app.jar: 15529m 26293m 23017m user17642 2009-10-05T18:18:27+08:002009-10-05T18:18:27+08:00 You try lslk?
In addition to
lslk
, you could also trylsof
.Try fuser
In the example below, I have run fuser against a jar file and it has shown me the pids for the processes using the jar.
You try lslk?