Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8621

Raspberry Pi OS • Re: Disk-Stick-SSD cataloger

$
0
0
@swampdog , WOW that is a great lecture,Will take me a few days to consume thanks.Nice to add a bash file. Had no idea that 'ls' relied on ram space.
I couldn't remember the info when writing the above. A quick google reveals total limit is..

Code:

foo@pi24:~ $ getconf ARG_MAX2097152
^^^2Mb - that's a 64bit bookworm rpi5. Generically it is more complex than that because it may depend on the shell in use: IBM's Aix default 'ksh' had a very low limit on power5, so low in fact it was often impossible to compile projects with more than a few thousand characters on the command line but you can ignore that because that was their Unix (as opposed to Linux).

Here's a hint of what happens when argument expansion runs out of space. I merely picked the first answer for my google ;-)
https://stackoverflow.com/questions/11 ... -commands
that limit only applies if your doing stupid things like

Code:

echo $(ls)
or if you try to pass 1000's of files to mv at once

if your using | then that limit doesnt apply

Statistics: Posted by cleverca22 — Sun Oct 12, 2025 7:19 pm



Viewing all articles
Browse latest Browse all 8621

Trending Articles