1

I want to delete all files named typhoon.svg from / partition. How to do that via command line?

Archisman Panigrahi
  • 28,338
  • 18
  • 105
  • 212

1 Answers1

2
sudo find / -name "typhoon.svg" -type f -delete

See this post for some more explanations.

Radu Rădeanu
  • 169,590
  • 1
    I usually do a "dry run" with find before I pipe it to delete, mainly because I am prone to typos. If the output looks good, repeat command with bash history and deletne. – Panther Jul 08 '14 at 17:55
  • @bodhi.zazen Exactly, for this I gave as reference the link from the answer. ...In this case, run first: find / -name "typhoon.svg" -type f – Radu Rădeanu Jul 08 '14 at 17:57