I want to delete all files named typhoon.svg from / partition. How to do that via command line?
Asked
Active
Viewed 225 times
1
-
What... you mean all files with that name in ANY directory? – Rinzwind Jul 08 '14 at 17:45
-
Tried sudo rm ? – Sergiy Kolodyazhnyy Jul 08 '14 at 17:47
1 Answers
2
sudo find / -name "typhoon.svg" -type f -delete
See this post for some more explanations.

Radu Rădeanu
- 169,590
-
1I 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