Re: Deleting many files from a directory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxx
Apartment 724                               http://nipsy.bitgnome.net/
Bryan, Texas, 77802-4481           AIM/Yahoo: texasnipsy ICQ: 66971617
(979)575-3193                                      MSN: nipsy@xxxxxxxx

-----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----
-
: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Newbie]     [Audio]     [Hams]     [Kernel Newbies]     [Util Linux NG]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Device Drivers]     [Samba]     [Video 4 Linux]     [Git]     [Fedora Users]

  Powered by Linux