Feb 26, 2009

How to find processes using a file on HPUX

I got the following error while I was trying to remove (forcefully) some of the files on HPUX
"rm: filename not removed. Text file busy"
This was happening as the files were used by one of the running process and were in use.

Use the following command to find out the process using the files.

fuser <filename>


The command displays the pid of the process. You can kill the process using the pid and remove the file successfully.

Read more ...