Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Jun 2011 12:00:33 GMT
From:      Eitan Adler <lists@eitanadler.com>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: misc/157491: update ls/rm/mv/cp tools to be able to handle large amount of files
Message-ID:  <201106011200.p51C0X0o012189@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR misc/157491; it has been noted by GNATS.

From: Eitan Adler <lists@eitanadler.com>
To: bug-followup@freebsd.org, vermaden@interia.pl
Cc:  
Subject: Re: misc/157491: update ls/rm/mv/cp tools to be able to handle large
 amount of files
Date: Wed, 1 Jun 2011 11:59:36 +0000

 The limit is not in these tools. It is a constant number, defined in
 bytes, in the kernel. This is designed to keep the amount of memory
 required to store these command line options bounded.
 You could see the value with
 $getconf ARG_MAX
 262144
 
 I suggest you use find + xargs which automatically will figure out the
 correct number of arguments and run the command for you.
 
 -- 
 Eitan Adler



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201106011200.p51C0X0o012189>