• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

What does "rm -rf" on it's own do?

Red Squirrel

No Lifer
I accidentally did "rm -rf & /folder &" when what I really want to do "rm -rf /folder &"

So naturally, "rm -rf" got executed and it just returned to a prompt right away. What happened, what did it delete, did it delete anything at all? Was a stupid mistake on my part, I always double check the path when running that command.
 
On my Ubuntu box, running rm -rf without the (mandatory) file parameter just returns without doing anything.
 
That's what it did for me as well. I was just scared that maybe it did do something. Like maybe it defaults to a certain folder. I can't find anything missing so far though, so my hunch is that it did not touch anything.
 
That's what it did for me as well. I was just scared that maybe it did do something. Like maybe it defaults to a certain folder. I can't find anything missing so far though, so my hunch is that it did not touch anything.

That would be the most idiotic design decision ever. If it did default to something, the man page would certainly say so.
 
Could just be a side effect of -f..
-f, --force ignore nonexistent files, never prompt

It just did as it said it would.. 🙂
 
Back
Top