[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

RE: How to remove a file



> 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

	There 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








[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]