From owner-freebsd-questions@FreeBSD.ORG Wed Feb 8 01:46:57 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9F459106567F for ; Wed, 8 Feb 2012 01:46:57 +0000 (UTC) (envelope-from modulok@gmail.com) Received: from mail-qy0-f182.google.com (mail-qy0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id 5E3888FC0C for ; Wed, 8 Feb 2012 01:46:56 +0000 (UTC) Received: by qcmt40 with SMTP id t40so38788qcm.13 for ; Tue, 07 Feb 2012 17:46:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=FXz0pLtgS19NWp2tHCUq72E6cDjMXlb/Q72/V7SCw+A=; b=PBoS1caBFhUZJ0sRjkKWTqCkhzVvUX1ZuXw8UA3qnntBbne0gt8jjJlMsGDbATlrGL GxQKoJo/sfqj8Yrqo+89yn8Nv1OrtEUkkVS7zb3kMpkXkf/x3OiugHufV97aE/4+PJW9 +xGSbDYjjWk1F/EuKnEtIsMx4v8hN+h4liax0= MIME-Version: 1.0 Received: by 10.224.184.201 with SMTP id cl9mr10054057qab.8.1328665616140; Tue, 07 Feb 2012 17:46:56 -0800 (PST) Received: by 10.229.8.12 with HTTP; Tue, 7 Feb 2012 17:46:56 -0800 (PST) In-Reply-To: <1237723287.20120207235924@yandex.ru> References: <1237723287.20120207235924@yandex.ru> Date: Tue, 7 Feb 2012 18:46:56 -0700 Message-ID: From: Modulok To: =?KOI8-R?B?68/O2MvP1yDl18fFzsnK?= Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions@freebsd.org Subject: Re: 'rm' Can not delete files X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Feb 2012 01:46:57 -0000 On 2/7/12, =EB=CF=CE=D8=CB=CF=D7 =E5=D7=C7=C5=CE=C9=CA = wrote: > # rm * > /bin/rm: Argument list too long. > > > in this directory about 25000 files, > but actually there is only one argument to rm it is '*' sign. > > Why rm get list of all files in directore instead of deleting one by one? If you're removing everything, can you just remove the directory and re-cre= ate it? e.g: cd .. rm -rf foo mkdir foo -Modulok-