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.

2
  • 10
    Good answer, but readers should note that -- is only supported by the GNU tools. Don't expect it to work on BSD. Commented Jan 9, 2012 at 21:23
  • 1
    To reiterate what Zan said, -- is not a shell feature, it's a feature of rm and many other GNU tools. Not all tools support it, so Tim's answer is more portable, across Unix systems and across utilities. Commented Jan 12, 2012 at 18:20