Timeline for "Argument list too long": How do I deal with it, without changing my command?
Current License: CC BY-SA 3.0
8 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Mar 8, 2022 at 16:13 | comment | added | Danny | This answer does not seem to work as consistently as some of the others, but it is by far the simplest to use when it does work and I think may also be faster than options that use for loops or the "find" command | |
| Jan 7, 2022 at 23:21 | comment | added | Britton Kerin | I suspect this solution is not working for some people because of how make ends up passing commands to the shell as discussed here: stackoverflow.com/questions/11475221/…. I could easily be wrong though | |
| Jan 7, 2022 at 23:04 | comment | added | Britton Kerin | Didn't work for me either. getconf ARG_MAX does show an increase but the command line still fails. In my case the argument list is 258k, which should fit comfortably in ulimit -s 60000 (which is in k). There's some other limit kicking in that gives this message. | |
| Aug 31, 2021 at 9:37 | comment | added | Code42 | @UncleBilly I tried that and it didn't work. | |
| Jan 25, 2021 at 14:22 | comment | added | user313992 | Does this mean that if I make the stacksize unlimited with ulimit -s unlimited the command line size will be unlimited, too? | |
| Jun 13, 2019 at 7:42 | comment | added | Alex | You can verify like this that it worked: $ getconf ARG_MAX 2097152 $ ulimit -s 65535 $ getconf ARG_MAX 16776960 | |
| Aug 16, 2012 at 0:07 | history | edited | D.W. | CC BY-SA 3.0 | added 125 characters in body |
| Aug 15, 2012 at 23:11 | history | answered | D.W. | CC BY-SA 3.0 |