Monday, May 25, 2015

How to create a file named "-f" and delete the same?

Say, I want to create a file named -f

It can be done using the option --

vi -- -f

Similarly the deletion of file -f can be done using the option -- with rm command

rm -- -f

No comments:

Post a Comment