From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Nipper Subject: Re: Deleting many files from a directory Date: Thu, 23 Dec 2004 03:59:17 -0600 Message-ID: <20041223095917.GA72494@king.bitgnome.net> References: <41CA927C.2000508@netual.pt> Mime-Version: 1.0 Return-path: Content-Disposition: inline In-Reply-To: <41CA927C.2000508@netual.pt> Sender: linux-admin-owner@vger.kernel.org List-Id: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: M?rio Gamito Cc: linux-admin@vger.kernel.org On 23 Dec 2004, M?rio Gamito wrote: > When we have too many files in a directory, let's say thousands, we > cannot rm -f * on them. The system says there are too many files. > So, one must go through a tedious process of deleting by parts. > > Is there a way to wipe them all at onde ? Multiple ways to do it really, but one would be: --- find /path/to/delete -exec rm -f \{\} \; -- Mark Nipper e-contacts: 4475 Carter Creek Parkway nipsy@bitgnome.net Apartment 724 http://nipsy.bitgnome.net/ Bryan, Texas, 77802-4481 AIM/Yahoo: texasnipsy ICQ: 66971617 (979)575-3193 MSN: nipsy@tamu.edu -----BEGIN GEEK CODE BLOCK----- Version: 3.1 GG/IT d- s++:+ a- C++$ UBL++++$ P--->+++ L+++$ !E--- W++(--) N+ o K++ w(---) O++ M V(--) PS+++(+) PE(--) Y+ PGP t+ 5 X R tv b+++@ DI+(++) D+ G e h r++ y+(**) ------END GEEK CODE BLOCK------ ---begin random quote of the moment--- "Suppose you were an idiot and suppose you were a member of Congress. But I repeat myself." -- Mark Twain ----end random quote of the moment----