Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
presidentender
on Jan 2, 2014
|
parent
|
context
|
favorite
| on:
Ask HN: What's your speciality, and what's your "F...
Can't we
cd /path/to/wherever rm -rf *.mp3 ?
aaronem
on Jan 2, 2014
|
next
[–]
You have stumbled squarely into the tripwire implicit in that question; "rm -rf *.mp3" ignores directories whose names don't end in ".mp3", and deletes those whose do.
code_duck
on Jan 2, 2014
|
prev
[–]
It's supposed to be recursive. That would only delete the files in the current directory, not subdirectories as well.
presidentender
on Jan 2, 2014
|
parent
[–]
-r is the 'recursive' flag.
aaronem
on Jan 2, 2014
|
root
|
parent
[–]
Yes, but it doesn't do what you think it does. Feel free to try it for yourself if you don't believe me.
Consider applying for YC's Summer 2026 batch! Applications are open till May 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: