How to empy /var/tmp on centos 6.9 (WHM)

Hi every body,
I need clean /var/tmp on cpanel. I can’t upgrade new version from CPANEL
I try use ssh with command
yum clean all
But not clean all /var/tmp
Thank you so much

rm -rf /var/tmp


I can’t remove

Can’t remove using rm -rf /var/tmp either. Any other method?

Yes, i using command rm -rf /var/tmp

Yes! rm -rf /var/tmp command is working just fine. Thanks for the solution :slight_smile:

But i’m not working. I don’t know why?

Use lsof (stands for list open files). As the name suggests this will report a list of all open files and the processes that opened them.

There are a bunch of options, but to see all open files under a directory:

lsof +D /path

Once you know which processes have files open, you can exit those apps, or kill them with the kill command.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.