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.
The command displays the pid of the process. You can kill the process using the pid and remove the file successfully.
Read more ...