sometimes a cigar is just a cigar
Header image

Rm – Argument list too long solution

Posted by ALonon in Linux

Today 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.

One Response

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>