You are not logged in.
I have a file named -+.txt and I can't delete it from my system. I've tried to rename it first and using --force but I simply can't delete it.
Last edited by fettouhi (2010-08-25 17:05:05)
Offline
Figured it out!
Offline
In many gnu programs, passing the flag -- to the program tells it to stop looking for further flags. This is what you need since the programs are interpreting your file as an option. Thus:
rm -- -+.txt
should do the trick.
EDIT:
Too slow!
Last edited by egan (2010-08-25 17:05:35)
Offline
rm -- -+.txt
edit: too slow :{
Last edited by milomouse (2010-08-25 17:05:41)
Offline
Would you mind posting the solution to your problem? It's quite irritating to see just 'Figured it out!'.
Last edited by karol (2010-08-25 18:43:02)
Offline
its a virus
Permissions? From man rm:
To remove a file whose name starts with a '-', for example '-foo', use one of these commands:
rm -- -foo
rm ./-foo
Edit: Last
Last edited by shemz (2010-08-25 17:07:33)
Offline