B Bích Hạnh Member Jan 12, 2022 #1 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.
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.