48699/argument-receiving-error-for-rm-command
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
Hi@Sanjana, I'm not sure this will work or ...READ MORE
Hi guys I was facing same problem as ...READ MORE
Please check the below-mentioned syntax and commands: To ...READ MORE
I'm only new to using SSH, but ...READ MORE
Try using systemd isntead of a cron ...READ MORE
Here is what you can do.Just use packagesmatching to ...READ MORE
In my experience, a single yum command will ...READ MORE
You can simply use of GDB, to debug ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.