top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration

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

+2 votes
130 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
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...