There are some situations when someone messes up with his text editor, file browser or shell and ends up creating a file called something like "-test".
Selecting the file on the file browser and pressing "Delete" should eliminate it. However, as you will probably have noticed, this blog is called "commandliners" so I am going to explain how to delete this files from a shell.
A naïve try would be something like the following:
$ rm -fichero
which leads to the following error:
rm: illegal option -- l
usage: rm [-f | -i] [-dIPRrvW] file ...
Here, -file is ...