Re: rm - Arguments too long
From: Jan Reilink (digiover_at_dsinet.org)
Date: 04/25/03
- Next message: Jan Reilink: "Re: Help required on the following..."
- Previous message: Dragan Cvetkovic: "Re: rm - Arguments too long"
- In reply to: cljlk: "rm - Arguments too long"
- Next in thread: K Stahl: "Re: rm - Arguments too long"
- Reply: K Stahl: "Re: rm - Arguments too long"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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/
- Next message: Jan Reilink: "Re: Help required on the following..."
- Previous message: Dragan Cvetkovic: "Re: rm - Arguments too long"
- In reply to: cljlk: "rm - Arguments too long"
- Next in thread: K Stahl: "Re: rm - Arguments too long"
- Reply: K Stahl: "Re: rm - Arguments too long"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|