I have several hundred PDFs under a directory in UNIX. The names of the PDFs are approx. 60 chars.
When I try to remove them all together using rm -f *.pdf
I get the following error:
/bin/rm: cannot execute [Argument list too long]
What can I do?
Bash actually expands the asterisk to every matching file, producing a very long command line. That's the reason for your issue.
find . -name "*.pdf" -print0 | xargs -0 rm
This should help
The help command is limited and it ...READ MORE
I think the problem could be those ...READ MORE
Hey @Dinesh, this isn't an error, its ...READ MORE
You need to set your default gateway. ...READ MORE
Npm depends on NodeJS to run/get installed. ...READ MORE
Please check the below-mentioned syntax and commands:
To ...READ MORE
Try using systemd isntead of a cron ...READ MORE
Here is what you can do.Just use packagesmatching to ...READ MORE
What gets returned is the return value ...READ MORE