1

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

  • What... you mean all files with that name in ANY directory? – Rinzwind Jul 8 '14 at 17:45
  • Tried sudo rm ? – Sergiy Kolodyazhnyy Jul 8 '14 at 17:47
2
sudo find / -name "typhoon.svg" -type f -delete

See this post for some more explanations.

  • 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 8 '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 8 '14 at 17:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.