How can I tell if a file is in use Linux?

How can I tell if a file is in use Linux?
Answer
The
command lsof -t filename shows the IDs of all processes that have the particular file opened. lsof -t filename | wc -w gives you the number of processes currently accessing the file.
 

Tìm kiếm

Back
Top