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
It isn't easy to install Tkinter locally ...READ MORE
I'm not sure this will work or ...READ MORE
This problem is caused due to SELinux. It ...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
In my experience, a single yum command will ...READ MORE
You can simply use of GDB, to debug ...READ MORE
Already have an account? Sign in.