Saturday, 14 July 2018

linux - How do I delete a file named "-p" from bash?


How do I delete a file named -p in bash? Trying rm "-p" complains that -p is not a valid argument.



Answer



Most GNU tools support -- to terminate the options.


rm -- -p
rm ./-p

No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...