---
title: "Just don't create a file called -rf. :-) — Larry Wall Quote #37 | QuotesBy.net"
description: "Just don't create a file called -rf. :-) — a quote by Larry Wall."
image: "https://quotesby.net/wp-content/themes/quotesby-editorial/assets/og-default.png"
---

> # Just don't create a file called -rf. :-)

[Larry Wall](https://quotesby.net/Larry-Wall)\#37

[Security](https://quotesby.net/Larry-Wall/security/)[Naming](https://quotesby.net/Larry-Wall/naming/)[Safety](https://quotesby.net/Larry-Wall/safety/)[Filesystem](https://quotesby.net/Larry-Wall/filesystem/)[Scripting](https://quotesby.net/Larry-Wall/scripting/)

[WhatsApp (opens in a new tab)](https://wa.me/?text=%E2%80%9CJust%20don%27t%20create%20a%20file%20called%20-rf.%20%3A-%29%E2%80%9D%20%E2%80%94%20Larry%20Wall%20https%3A%2F%2Fquotesby.net%2FLarry-Wall%2F37%2F)[X (opens in a new tab)](https://twitter.com/intent/tweet?text=%E2%80%9CJust%20don%27t%20create%20a%20file%20called%20-rf.%20%3A-%29%E2%80%9D%20%E2%80%94%20Larry%20Wall&url=https%3A%2F%2Fquotesby.net%2FLarry-Wall%2F37%2F)[Facebook (opens in a new tab)](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fquotesby.net%2FLarry-Wall%2F37%2F)

## About this quote

What does it mean?Avoid creating a file named '-rf' because it can be interpreted as a command option.In plain termsDon't name a file '-rf' to prevent command-line confusion.What can you take from it?Choose filenames that don't start with hyphens.

### Where it applies

- scripting
- automation

### Putting it to work

- prefix with a letter
- use quotes when referencing

### Questions to consider

- What other filenames cause command issues?
- How can I safely handle hyphenated names?

### Another view

Renaming may be cumbersome in existing projects.

## More from Larry Wall

1. > I won't mention any names, because I don't want to get sun4's into trouble... :-)

[Permalink to quote \#36](https://quotesby.net/Larry-Wall/36/ "Permalink to quote 36")
2. > last\|perl -pe '$\_ x=/(..:..)...(.\*)/&amp;&amp;$1ge$1&amp;&amp;$1lt$2' That's gonna be tough for Randal to beat... :-)

[Permalink to quote \#38](https://quotesby.net/Larry-Wall/38/ "Permalink to quote 38")
3. > It's there as a sop to former Ada programmers. :-)

[Permalink to quote \#35](https://quotesby.net/Larry-Wall/35/ "Permalink to quote 35")

## Related quotes

1. > America decided we were going to stand by and let Americans die at the hands of terrorists a long time ago.

[Tommy Franks](https://quotesby.net/Tommy-Franks)[Tommy Franks quote \#2](https://quotesby.net/Tommy-Franks/2/ "Permalink to quote 2")
2. > I'm anything but skittish about government, but I must say this administration is truly scary and, given the times we live in, frighteningly dangerous.

[John Dean](https://quotesby.net/John-Dean)[John Dean quote \#2](https://quotesby.net/John-Dean/2/ "Permalink to quote 2")
3. > Don't go to parties with metal detectors. Sure, it feels safe inside. But what about all those niggers waiting outside with guns? They know you ain't got one.

[Chris Rock](https://quotesby.net/Chris-Rock)[Chris Rock quote \#3](https://quotesby.net/Chris-Rock/3/ "Permalink to quote 3")

```json
{
    "@context": "https://schema.org",
    "@type": "Quotation",
    "text": "Just don't create a file called -rf. :-)",
    "url": "https://quotesby.net/Larry-Wall/37/",
    "spokenByCharacter": {
        "@type": "Person",
        "name": "Larry Wall"
    }
}
{
    "@context": "https://schema.org",
    "@type": "BreadcrumbList",
    "itemListElement": [
        {
            "@type": "ListItem",
            "position": 1,
            "name": "Home",
            "item": "https://quotesby.net/"
        },
        {
            "@type": "ListItem",
            "position": 2,
            "name": "Authors",
            "item": "https://quotesby.net/authors/"
        },
        {
            "@type": "ListItem",
            "position": 3,
            "name": "Larry Wall",
            "item": "https://quotesby.net/Larry-Wall"
        },
        {
            "@type": "ListItem",
            "position": 4,
            "name": "Quote #37",
            "item": "https://quotesby.net/Larry-Wall/37/"
        }
    ]
}
```
