1855760 Members
9089 Online
104103 Solutions
New Discussion

removing a file

 
SOLVED
Go to solution
Steve_3
Frequent Advisor

removing a file

i got a user who accidentally create a file:

--------------------.list

how can i remove this file?

thanks.
steve
4 REPLIES 4
Vikas Khator
Honored Contributor
Solution

Re: removing a file

rm -- -*.list
Keep it simple
Victor BERRIDGE
Honored Contributor

Re: removing a file

rm -- ---*
James R. Ferguson
Acclaimed Contributor

Re: removing a file

Steve:

A post just this morning discussed a similar problem. See:

http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0xb1800559ff7cd4118fef0090279cd0f9,00.html

...JRF...
Rick Garland
Honored Contributor

Re: removing a file

The rm -i * command is interactive. It will prompt you for each file if you want to remove the file. "y" if you do, "n" if you do not.