1

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

Archisman Panigrahi
  • 25,210
  • 17
  • 90
  • 185

1 Answers1

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

See this post for some more explanations.

Radu Rădeanu
  • 166,822
  • 48
  • 327
  • 400
  • 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