LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Utility (or command) to see what processes have a file open (https://www.linuxquestions.org/questions/linux-newbie-8/utility-or-command-to-see-what-processes-have-a-file-open-775049/)

jgardner123 12-11-2009 05:19 PM

Utility (or command) to see what processes have a file open
 
Hi. I am searching for a utility (or a command) that I can run on a file that will tell what processes have the file open. I think my distro is RedHat 4.2, but I'm not even sure of that. I'm new to Unix/Linux. Thanks in advance!
JG

estabroo 12-11-2009 05:36 PM

lsof

rabbit2345 12-11-2009 05:40 PM

lsof | grep [filename]

chrism01 12-13-2009 06:20 PM

Also,

uname -a

cat /etc/redhat-release

to get your kernel & OS versions


All times are GMT -5. The time now is 11:25 PM.