Today when i tried to delete multiple files from linux machine using following commands
sudo rm -rf filename*
I got the error
sudo: unable to execute /bin/rm: Argument list too long
instead of rm -rf command use following command
sudo find . -name "filename*" -exec rm -v {} \;
No comments:
Post a Comment