I have read dozens of posts on his subject, yet cannot find a solution that works for me.
I have a user account. PHP sessions for that account are stored in
/home/user/tmp
Apache start tossing errors that i can't open sessions because the device is full.
df and df -i both show me that the device has plenty of space.
So I look to he /home/user/tmp directory. It shows the size of the directory is 901MB.
I wan to delete the session files from the directory.
I have tried
rm -rf /home/user/tmp/sess_*
I let his run for over an hour then used cntr+C
to kill the command. The directory still says 901 MB.
I have rebooted the system, the directory still shows at 901MB.
I have tried
find /home/*/tmp -type f -name 'sess_*' -ctime +5 -delete
Just like with rm -rf
I let the command run for over an hour and killed it.
The directory still shows 901MB.
I am issuing these commands as root user. I am using ubuntu 16.04. This is a server so only command line options will work.
What can I do to remove these session files?