How does one use rm to delete a file named ‘–help’? When I try, it just shows the help prompt.
I ended up opening a file browser to delete it.
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.
Two approaches:
This latter approach is supported by many common UNIX tools (
--means “end of options” by convention, ie. that everything else will be a positional parameter), and is particularly handy in a script, when you don’t know what data you’ll be dealing with.