rm list too long?

home | blog | Teh Internet | guest blog |rants | placeholder | political | projects | Gwen and Liam | Citadel patched | Tools | Scouts


- Careful Chrome users, this search box might be "Not secure"



try this instead
Are you getting:
rm *
-bash: /usr/bin/rm: Argument list too long

Try this:
find . -iname '*' | xargs rm

Or this (if you want to do it nicely):

nice -n19 ionice -c2 -n7 find . -iname '*' | xargs nice -n19 ionice -c3 -n7  rm -rfv

Drop the v if you don't want to see output.



[æ]