Fix: Argument list too long in Linux
Argument list too long is the kernel refusing an oversized exec, and the glob you typed is usually why. Reproduce it, then fix it with xargs or find.
Filtering by topic #shell · clear
Argument list too long is the kernel refusing an oversized exec, and the glob you typed is usually why. Reproduce it, then fix it with xargs or find.
Learn awk for server text: fields, NR and NF, -F separators, BEGIN and END, printf, and arrays that count status codes. Check which awk you have first.
Open a shell in a running Compose service with docker compose exec, and use docker compose run for a new container when the service is stopped.
Bash globbing explained: how the shell expands wildcards into filenames before a command runs, plus nullglob, dotglob, globstar and extglob negation.
Copy a directory to another server with tar and SSH: why -f - is needed, where -C goes, who owns the extracted files, and compression in the pipe.
Sourcing a bash script runs it in your current shell. Executing forks a child. Why cd and export do not stick, and why source can close your session.
!! repeats the last command and !$ gives you its last argument. Learn the six bash history expansions worth knowing, plus :p to print one before it runs.