[GoLUG] Gigantic deletion

Steve Litt slitt at troubleshooters.com
Sun Jan 4 04:01:46 EST 2026


Alex Finkel said on Sat, 3 Jan 2026 13:05:03 -0500

>In situations like this, instead of running the rm command it should
>be faster to run:
>
>‘find .wine -type f -print | xargs rm’
>
>I think the rm command tries to look at the entire directory before it
>starts deleting while using the find command with xargs just starts
>deleting as it goes. 

I think you're right about find being more efficient. I'm not a fan of
xargs: It's too easy to screw up. Maybe find --exec would be better.



SteveT

Steve Litt 

http://444domains.com



More information about the GoLUG mailing list