top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to find which processes are using a particular file in linux?

+2 votes
618 views
How to find which processes are using a particular file in linux?
posted Sep 28, 2013 by Manish Negi

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

2 Answers

0 votes

By using lsof command in Linux. It 'll list down PID of all the process which is using a particular file
i.e To find user specific open files you use # lsof -u tecmint.If you want to List Open Files of TCP Port ranges 1-1024 then use # lsof -i TCP:1-1024

answer Sep 28, 2013 by Vinay Shukla
0 votes

By using lsof command in UNIX. It wills list down PID of all the process which is using a particular file.

answer Sep 22, 2015 by Mohammed Hussain
...