I'm trying to delete /var/www/html but I'm getting this error:
rm: cannot remove `html': Device or resource busy
I was having the same issue, I was trying and failing to delete
with the error
until I noticed that
that is, I had a partition mounted to that point. Mystery solved.
You can use
It's likely that there is a process running that is using a file or files found somewhere in the tree below
to get a list of the processes using files in the tree. Sample output below shows that a bash shell with PID 8138 is using /var/www/html/iain.
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?