---
# System prepended metadata

title: Dashed Filename

---


# Dashed Filename

https://www.webservertalk.com/dashed-filename


dash (-) is generally used by commands to specify options and arguments.

## Create 

```
touch -- -filename
```

![](https://i.imgur.com/fYyXfhU.png)




## Delete 

```
rm -rf -filename
```


![](https://i.imgur.com/hQgZdGs.png)


## Open and Read Filename Starting with Dash


Create a -meowhecker

```
touch -- -meowhecker
```

![](https://i.imgur.com/i85rPii.png)

Write some string into the dash file 

```
echo "I'm meowhecker" > -meowhecker
```

![](https://i.imgur.com/o5SFquV.png)


```
cat -- -meowhecker
```
![](https://i.imgur.com/mHadEtk.png)

Also you can use ./ or < option before the dash(-)file to view the content of the file.

![](https://i.imgur.com/q1Be3pX.png)
![](https://i.imgur.com/Bs1R5s1.png)


## Copy


![](https://i.imgur.com/L95b5Vs.png)


## List filename 

![](https://i.imgur.com/tDkyZLi.png)




