Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • 1
    In my bash, !! -rf works (simpler than !!:0 !*). I don't know if this is dependent on the bash version (as you have mentioned about GNU distribution). Mine is "GNU bash, version 3.00.15(1)" Commented Sep 25, 2013 at 17:06
  • How the tool (rm in this case) processes arguments is more what I was referring to. GNU utils on Linux generally accept option flags at the end after other arguments, whereas BSD (and OSX) do not. But you make a good point, !!:0 !* -rf is completely pointless and no better than !! -rf, I'll update my answer. Commented Sep 26, 2013 at 9:36