Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
OK, for some reason I now have a file named "-f" in my home directory. I can't seem to remove it, I've tried "rm -f", "rm \-f", and "rm *f". This is a 77 byte file owned by root. If I use "ls *f" and it enter, it won't show up, but if I enter the same thing and keep hitting tab for auto-completion it will. Someone help. Does this mean someone's gotten in? Help please!
"rm ./-f" as stated above should work. The "./" will keep the "-f" from being considered an argument. If it doesn't work, there may be more funny characters in the file name, like trailing spaces. try an "ls -b" to display unprintable characters.
I once had a file named "*.*" in a Dos directory that was difficult to safely remove.