From owner-freebsd-questions Sun May 7 13:11:55 2000 Delivered-To: freebsd-questions@freebsd.org Received: from oracle.clara.net (oracle.clara.net [195.8.69.94]) by hub.freebsd.org (Postfix) with ESMTP id 06F1637BB25 for ; Sun, 7 May 2000 13:11:49 -0700 (PDT) (envelope-from merlin@A470.com) Received: from [212.126.141.178] (helo=A470.com) by oracle.clara.net with smtp (Exim 2.12 #2) id 12oXP0-000Jd6-00 for freebsd-questions@freebsd.org; Sun, 7 May 2000 21:11:47 +0100 Received: (qmail 5958 invoked by uid 1000); 7 May 2000 20:14:10 -0000 Date: Sun, 7 May 2000 20:14:10 +0000 From: Darren Wyn Rees To: freebsd-questions@freebsd.org Subject: "rm -rf *" - "argument list too long" Message-ID: <20000507201410.M540@netlink.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i Organization: A470 X-No-Archive: yes X-PGP-812C54B1: F8 79 5E 84 F0 20 A5 62 FA 2D E9 BD BE 06 7D 10 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 ", 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