I'm on CentOS 7.2 and I've somehow managed to create a folder called "-p". I can't seem to remove it now. I've tried the following:
rmdir -p
rmdir "-p"
rmdir \-p
rmdir "\p"
It's probably simple, but I'm struggling.
I guess worst case I'll move anything out of the parent folder and go for a rm -rf
Many thanks
EDIT: just figured out the command that did it (and has done it again)
mkdir –p /etc/redis /var/redis
...I don't even