Unable to delete LARGE folder

Lennart Sorensen lsorense-1wCw9BSqJbv44Nm34jS7GywD8/FfD2ys at public.gmane.org
Wed Dec 7 16:37:02 UTC 2011


On Wed, Dec 07, 2011 at 11:11:14AM -0500, Jamon Camisso wrote:
> xargs isn't the best way to delete things. find has the -delete option
> for this, which avoids forking processes, and is portable across *NIX
> versions of the tool, whereas xargs is apparently not:
> 
> http://www.gnu.org/software/findutils/manual/html_node/find_html/Deleting-Files.html

posix find does NOT have a -delete option, so it is clearly NOT portable.

find foldername -exec rm {} \;

That is portable.  But calls rm a lot more times, hence the xargs.

-- 
Len Sorensen
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list