RE: How to remove a file

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

 



> 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






_______________________________________________

Ext3-users@redhat.com
https://www.redhat.com/mailman/listinfo/ext3-users

[Index of Archives]         [Linux RAID]     [Kernel Development]     [Red Hat Install]     [Video 4 Linux]     [Postgresql]     [Fedora]     [Gimp]     [Yosemite News]

  Powered by Linux