On Mon, May 20, 2002 at 12:19:08PM -0400, rpjday wrote:
> if you *truly* want to empty a directory, why not just cd up one level
> and remove the directory with:
> 
> $ rm -rf <dirname>
> 
> this has the advantage of getting rid of all of the hidden objects as
> well, which normal wildcards don't.  you can always "mkdir" the directory
> and put it back if you really need it.

Another point--directories dynamically grow as the number of files in
them grow.  This space is never released, even when you delete files.

Deleting and recreating directories--especially ones that get a LOT
of files, such as spool or transfer directories--recover this space,
and make access to the directory more efficient.

Cheers,
-- 
        Dave Ihnat
        [EMAIL PROTECTED]



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to