From owner-freebsd-questions@FreeBSD.ORG Tue Feb 7 22:35:29 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 548F11065679 for ; Tue, 7 Feb 2012 22:35:29 +0000 (UTC) (envelope-from ruletko@gmail.com) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id D40828FC12 for ; Tue, 7 Feb 2012 22:35:28 +0000 (UTC) Received: by bkbzx1 with SMTP id zx1so8212855bkb.13 for ; Tue, 07 Feb 2012 14:35:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=eahlTYYjVZdr0IY9WqGTDD9+mgHGfkKOO3JWrtZhhck=; b=Qx4cZ6Zjf4iyNNwJuU1xRtNHrSHGIRrd9TkeCOq8qOhIzAK4Vcqyql3YobgWRYy6xQ I+qXDpL9rIsjRrs/LhYHZx4pCVYq7HbjFW68wIts3KNCInBVM3pjKdBDZFn7F3DjABEJ OfCqhWMdpjbJAo0/EdGLq5nMxxN2O9cLZLBRI= Received: by 10.204.156.207 with SMTP id y15mr11464690bkw.83.1328652496490; Tue, 07 Feb 2012 14:08:16 -0800 (PST) Received: from [10.10.70.102] (213-114-207-82.ip.ukrtel.net. [82.207.114.213]) by mx.google.com with ESMTPS id jd17sm59595483bkb.4.2012.02.07.14.08.15 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 07 Feb 2012 14:08:15 -0800 (PST) Message-ID: <4F31A0CA.3080607@gmail.com> Date: Wed, 08 Feb 2012 00:08:10 +0200 From: CK User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0) Gecko/20120129 Thunderbird/10.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <1237723287.20120207235924@yandex.ru> In-Reply-To: <1237723287.20120207235924@yandex.ru> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Tue, 07 Feb 2012 23:00:35 +0000 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: Tue, 07 Feb 2012 22:35:29 -0000 Êîíüêîâ Åâãåíèé 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? Short answer: this is not Windows. Long answer: shell does wildcard expands, therefore rm gets about 25000 arguments of expanded '*'. Try find ./ -type f -delete Thanks, CK