Some program makes ta my root directory dummy files such as
-1
-2
-3
...
-n
I run unsuccessfully
rm -1
and too
rm "-1"
Terminal thinks that -1 is the option.
How can you remove the files in terminal?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use
rm ./-1, the ./ refers to the current directory and as the parameter doesn’t start with a dash it isn’t interpreted as an option.