Animesh Singh wrote:
but i tried to remove it using rm -doc it was treating this -doc as options. So how can i remove this file.
<snip> To remove a file whose name starts with a ‘-’, for example ‘-foo’, use one of these commands:
rm -- -foo rm ./-foo
However, if in case you get trapped in a shell and you face such a kind of problem, and its a kind of urgent, then you can use the utility "midnight commander" to navigate through the filesystem.
$mc
it has a nice interface, and can perform all the file operations.
anurag
Regards, Animesh.