For the love of all that is good, help me delete this file! ;)
Honestly, I've searched the forum, and maybe I'm not using the right search terms, but I can't find anything. I apologize if someone else finds it easily, but this is the biggest annoyance to me (and probably the smallest most insignificant thing to others lol)
I have a file in my /home/<user> directory named -q. I don't know why, and I don't know how.. probably a bad cp or mv command. So, I'm sure you all know what the problem ends up being? When I type rm -q... it tells me that -q is not a valid option for the rm command. I've tried everything that I can think of.. rm *q, rm '-q', rm * (it's the only file in the directory, there are other directories though. Oh, and the kicker? This is Ubuntu Server, with no GUI installed ;) Any help would be greatly appreciated! Thanks, Jay |
Read the man page of rm ;)
Quote:
|
it's a directory, I'm pretty sure that mean you need to use rm -r ./-q
|
Quote:
Quote:
Both commands suggested by Wim work. Thanks to blingham and Wim, got to learn something interesting. |
Quote:
But thank you so much! Since it was a file, rm -- -q worked perfectly! Jay |
All times are GMT -5. The time now is 10:57 AM. |