Hi, Sorry if I am posting to a wrong place. Please help me in removing a file which is named as "-file1.tar". This file got created accidentally. I am unable to remove this file . So please suggest a way to remove such files. Thanks in advance. Sugunakar Ambati
rm -- -file1.tar -- mean, there are no more options. Marc On Fri, 20 Jun 2003 16:55:32 +0530 "Sugunakar Ambati" <sugunakara@intelligroup.co.in> wrote:> -file1.tar
> Please help me in removing a file which is named as "-file1.tar".> This file got created accidentally. I am unable to remove this file. > So please suggest a way to remove such files.>Thanks in advance. >Sugunakar AmbatiThere are so many ways to do this that I'm surprised you couldn't even think of one. The simplest is: rm -- -file1.tar Also good is: rm ./-file1.tar Things that won't work include: rm ?file1.tar rm -i *file1.tar rm \-file1.tar DS