Re: rm - Arguments too long

From: Jan Reilink (digiover_at_dsinet.org)
Date: 04/25/03


Date: Fri, 25 Apr 2003 22:41:40 +0200

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
>

I haven't seen this answer (yet), it might take a while though:
$ cd <directory>
$ ls -1 | while read line; do (/bin/rm $line); done

I don't want to mix apples and oranges but this works on Linux :)

Regards, Jan

-- 
Dutch Security Information Network
http://www.dsinet.org/


Relevant Pages

  • 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.admin)
  • Re: rm - Arguments too long
    ... cljlk wrote: ... > can I have other alternation option to remove the directory? ... automatic naming convention that has boatloads of them starting with the ...
    (comp.unix.solaris)
  • Re: rm - Arguments too long
    ... cljlk wrote: ... > can I have other alternation option to remove the directory? ... automatic naming convention that has boatloads of them starting with the ...
    (comp.unix.misc)
  • Re: rm - Arguments too long
    ... cljlk wrote: ... > can I have other alternation option to remove the directory? ... automatic naming convention that has boatloads of them starting with the ...
    (comp.unix.admin)