POV-Ray : Newsgroups : povray.off-topic : Trouble with large directory in Linux : Re: Trouble with large directory in Linux Server Time
29 Jul 2024 06:22:52 EDT (-0400)
  Re: Trouble with large directory in Linux  
From: Warp
Date: 28 Feb 2012 14:47:33
Message: <4f4d2f55@news.povray.org>
Kevin Wampler <wam### [at] uwashingtonedu> wrote:
> I have a directory which (I think) has many many small files in it.  I'd 
> like to remove these files, however every attempt I've tried fails.  For 
> example:

> cd <dir>; rm *
> rm -r <dir>
> ls <dir>
> find <dir>

  A webpage suggests this:

find <dir> -exec rm {} \;

  (I think that the idea is that this executes the 'rm' command individually
on each file as it traverses the directory, rather than first gathering all
the file names into RAM and then trying to do something to them.)

-- 
                                                          - Warp


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.