To furthur this dicussion use -- after a command.
ex, try this.
$ touch -- -Z
This will create a file with name "-Z"!!.
Now no matter what you do you can't rename it(mv), or edit it(vi,..) or even remove it(rm), since -Z will be read as an option instead of filename.
To get around...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.