Date: Sun, 7 May 2000 15:41:00 -0500 From: "Harold Pulcher - Killer Computing" <pulcher@killercomputing.com> To: "Darren Wyn Rees" <merlin@netlink.co.uk>, <freebsd-questions@FreeBSD.ORG> Subject: Re: "rm -rf *" - "argument list too long" Message-ID: <02b001bfb864$8ed928a0$02b5e9c7@killercomputing.com> References: <20000507201410.M540@netlink.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
do a man xargs. I think that will do what you need. Harold ----- Original Message ----- From: Darren Wyn Rees <merlin@netlink.co.uk> To: <freebsd-questions@FreeBSD.ORG> Sent: Sunday, May 07, 2000 3:14 PM Subject: "rm -rf *" - "argument list too long" > I'm in a directory with a tonne of files I wish to delete. > I type "rm -rf *", but it won't work, it gives "/bin/rm: Argument > list too long". So how can I delete these many files ? > > I can "cd ..", and then "rm -rf <directory name>", and that works. > > However, what if I didn't wish to remove directories. In that > case, what would I do to remove the files ? > > Thanks > > darren > > PS. (I'm finding it takes some getting used to putting > the operands to many commands immediately after the command. > Why is this so with FreeBSD? With Linux I can type 'rm * -rf' etc.) > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?02b001bfb864$8ed928a0$02b5e9c7>