3 ms·
Wouldn't that just delete the folder instead of emptying it?
by tta 15y ago
Wouldn't that just delete the folder instead of emptying it?
- delinka 15y agoBack in the day, rm followed .. if you specified it on the command line. It went like this: You are in .; The current directory listing include ..; Recursively deleting everything deletes everything on the drive. Actually, I think the one time I saw someone do this, wildcards were involved. And I was going to explain, but the comment system is making my asterisks into bold markers.
- trustfundbaby 15y agoI can't get the wildcard character to show up ... it should be x.x
- deleted 15y ago[deleted]
- sesqu 15y agoYou can prepend two spaces to insert <code> (http://news.ycombinator.com/formatdoc http://news.ycombinator.com/formatdoc): rm -rf ./* rm -rf *.* To stay on topic, because of this thread, I just added alias rm="rm -I" to .bashrc, and I have never yet needed -f.