Custom Search

Tuesday, August 5, 2008

Accessing a file whose first character of the filename is "-"

A file with name "-file.txt" can not be accessed by the commands like "cat -file.txt" or "vi -file.txt".

But can be accessed using "cat ./-file.txt" or "vi ./-file.txt"
So if anynoe does not know the meaning of "./" will not be able to access the file!!
Its really funny!!!

No comments:

 
Watch the latest videos on YouTube.com