Re: rm - Arguments too long

From: Barrett Richardson (barrett@aye.net)
Date: 04/22/03


From: Barrett Richardson <barrett@aye.net>
Date: Tue, 22 Apr 2003 09:47:59 -0400


On Mon, 21 Apr 2003, cljlk wrote:

>
>
> I use rm -r directory, it hang for 3 days, it still could not
> delete the directory. Thus I cd directory and rm *, I got
> "Arguments too long". How do I delete files? A
> can I have other alternation option to remove the directory?
> Thanks
>

If the set of data on this filesystem that you want to keep is
small in comparison to what you want to delete, you may want
to consider backing up the files you wish to keep (and them
only). Then rebuild the filesystem, and restore the files.
Could be much quicker if there are only a couple of thousand
you want to keep, and tens of thousands of files that you
want to get rid of.



Relevant Pages

  • Re: rm - Arguments too long
    ... On Mon, 21 Apr 2003, cljlk wrote: ... > can I have other alternation option to remove the directory? ... Then rebuild the filesystem, and restore the files. ... want to get rid of. ...
    (comp.unix.solaris)
  • Re: rm - Arguments too long
    ... On Mon, 21 Apr 2003, cljlk wrote: ... > can I have other alternation option to remove the directory? ... Then rebuild the filesystem, and restore the files. ... want to get rid of. ...
    (comp.unix.admin)
  • Re: rm - Arguments too long
    ... cljlk wrote: ... > can I have other alternation option to remove the directory? ... Dutch Security Information Network ...
    (comp.unix.admin)
  • Re: rm - Arguments too long
    ... cljlk wrote: ... > can I have other alternation option to remove the directory? ... Dutch Security Information Network ...
    (comp.unix.solaris)
  • Re: rm - Arguments too long
    ... cljlk wrote: ... > can I have other alternation option to remove the directory? ... Dutch Security Information Network ...
    (comp.unix.misc)