Could ARG_MAX be increased?

Cyrille Lefevre clefevr-current at
Thu Sep 23 06:48:37 PDT 2004

"Juha Saarinen" <juhasaarinen at> wrote:
> Currently, ARG_MAX is set to:
> $ getconf ARG_MAX
> 65536
> in syslimits.h. This is quite low compared to other OS (SunOS has 1MB
> IIRC, and OpenBSD 3.5 256K) and causes the "argument list too long"
> issues when for instance grep'ing in directories with lots of files.

how about grep -r ou find | xargs grep !

Cyrille Lefevre.
home: mailto:cyrille.lefevre at

More information about the freebsd-current mailing list