2

Here are some options

a) rm -f

b) rm "-f" (double quotes)

c) rm '-f' (single quotes)

d) all of the above

e) none of the above

siamii
  • 557
  • 1
  • 4
  • 7

1 Answers1

12

There are two options. You can use -- to tell rm that there are no more options. The second way is to specify the relative or absolute path to the file.

Here are some examples:

rm -- -f
rm ./-f
rm /path/to/-f
jordanm
  • 41,988
  • 9
  • 116
  • 113