Command Line Length Limitations
The other day I tried to run a rm
command on the contents of a directory with a LOT of files.
Instead of deleting the contents of the directory, the following message was displayed:
Bash wanted to expand the entire command before executing it. It was too long. But what is too long?
It turns out that we can figure out the max length of commands with the following command:
For me, the result is 262144
.
Last updated