Skip to content

Quoting and expansion

routinepar 1 command

Remove the file that looks like an option

There is a file called -rf.txt. rm will read that name as options. Remove it anyway, and leave everything else alone.

Goal

0 / 1 commands

Remove the file called -rf.txt. It begins with a dash, so rm will read it as options.

  • ·Uses rm
$

The files in the sandbox, with their modes, link counts and sizes
ModeLinksSizeName
-rw-r--r--120-rf.txt
-rw-r--r--124a'quote.txt
-rw-r--r--129agenda.txt
-rw-r--r--133report.txt
-rw-r--r--122star*.txt
-rw-r--r--132trailing space .txt
-rw-r--r--126two words.txt