Vadivel Murugan M Vadivel Murugan M - 7 months ago 14
Bash Question

How to find and delete a particular file every directory using linux command

I'm using ubuntu 15.10. I have "backup_old.zip" file in more than 100 directories. How can I remove all "backup_old.zip" file in single linux shell command.

Answer

This shell command was worked for me.

$ find . -name backup_old.zip -type f -exec rm -r {} \;