/bin/rm: Argument list too long

If you have too many files to remove, try this trick:

find . -name '*' | xargs rm -v

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Printed from: http://rackerhacker.com/2007/03/26/binrm-argument-list-too-long/ .
© Major Hayden 2010.

1 Comment   »

  • Suneelm says:

    Hey thanx man !!!!! it solved my problem .. i was trying to delete some ~1 lacs files of 6.2 TB storage space .. this command worked for me ..

RSS feed for comments on this post , TrackBack URI

Leave a Reply