|
|
Another option
As several others have noted, you can just delete the parent folder. If you don't want to do that, for example if you just want to delete some of the files or move them somewhere else, you can also use head to limit the number you work with at one time.
For example, you can remove 1000 files at a time: rm `ls | head -1000`
or remove just the JPG files: rm `ls | grep -i jpg | head -1000`
Another option
Sorry, but you can't just delete the parent folder if it contains millions of files. I watched the Finder counting for three days, preparing to delete 12 million files in one folder and when the count exceeded the number of files on the volume I killed it.
Another option
The Finder is a bit different from the command line though. For one, you don't hear many people chanting "Fix the *censored*ing Command Line" The comments, for example, on the link that you posted seem to indicate that
rm can handle recursively removing large numbers of files.I replicated the example from the comments: $ mkdir large
$ time for i in {0..999999} ; do echo > large/$i ; done
real 6m41.485s
user 0m36.963s
sys 2m28.405s
$ time rm -r large
real 3m21.800s
user 0m3.100s
sys 2m9.808s
Worked fine for me. ---
i am jack's amusing sig file |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.08 seconds |
|