Rm – Argument list too long solution
Posted by in LinuxToday my all web sites that working with session was giving that error:
Warning: session_start() [function.session-start]: open(/var/lib/php5/sess_1812dbcc1b2e606c5f44f7c4d277c22e, O_RDWR) failed: No space left on device (28) in /**/theme/default/header.php on line 5
After a little searching i found that i didn’t have any free space. My applications could not delete session in /var/lib/php5 folder. So i tried to delete manualy with this command.
rm -rf *
But because of there were lots of session files. I took
Argument list too long
To solve this problem i write.
find . -name “*” -print | xargs rm -v
But i don’t have any idea about what this command do !
You can follow any responses to this entry through the RSS 2.0 You can leave a response, or trackback.

Pingback: Ubuntu server optimization