Contact

E: Peter Davies
P: 0845 310 5320

SocNet's

Blog‎ > ‎

rm: Argument list too long

posted 9 Sep 2009 02:22 by Peter Davies
Magento is odd... the session directory stores a lot of session files so much so I got a:

rm sess*
/bin/rm: Argument list too long.


So, that implies there's too many files to delete! The simplest alternative is to then use the following which deletes each file in-turn:

find . -name 'sess*' -print0 | xargs -0 rm

  Sign in   Recent Site Activity   Terms   Report Abuse   Print page  |  Powered by Google Sites