Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Removing awkward files 1

Status
Not open for further replies.

cmhunt

Programmer
Apr 17, 2001
119
GB
I don't know how but I have a couple of files whose filename begins with a hyphen. How do I remove them?? The usual rm command doesn't work.
 
Suppose you have the file -test.

To remove type-

rm - -test

Steve
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top