How To Remove files starting with -

In Unix/Linux when u create a file starting with a - e.g.-file
then when u try to remove or rename it, it is not possible.
e.g. rm -file . when we give this command rm assumes to be its option rather than its argument. Same is the case when this filename is given as an argument to mv or cat and other commands.

Can any1 provide a solution??

This is a very common question

rm -- -file

The "--" tells rm (and many other *nix commands) to stop interpreting arguments as options, and to treat them as filenames.

Cheers
ZB

You can also prefix a 'goofy' filename with the path

rm -f /home/usr/-file