By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,418 Members | 1,305 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,418 IT Pros & Developers. It's quick & easy.

How to delete a file with name starting with '-' character

P: 11
hello all,


I have a file with name '-ffree-node.c'

How do I delete this ?

When I try to do it
it is giving some errror.

$> rm -ffree-node.c
rm: invalid option -- e
Try `rm --help' for more information.


Thanks for any replies in advance.

--
Ravi.T
Nov 7 '07 #1
Share this Question
Share on Google+
3 Replies

P: 11
I tried with single quotes and double quotes.
Nov 7 '07 #2

radoulov
P: 34
Expand|Select|Wrap|Line Numbers
  1. rm -- -ffree-node.c
Expand|Select|Wrap|Line Numbers
  1. rm ./-ffree-node.c
Nov 7 '07 #3

P: 33
Expand|Select|Wrap|Line Numbers
  1. rm -- -ffree-node.c
Expand|Select|Wrap|Line Numbers
  1. rm ./-ffree-node.c
Thanks radoulov
for your reply. I also tries it for my hobby.
Dec 19 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.