command line - How to delete folder with strange name? - Ask Ubuntu


this question has answer here:

i don't know how i've done i've created somehow folder named "-p". i'm trying delete buntu thinking i'm passing -p paremeter.

what can do?

ubuntu server 15.

you can use -- tell rm (and many other commands including many shell built-ins) not interpret further input command parameters, -p can interpreted correctly argument instead of "unrecognised option"

rm -- -p 

(this safety measure when globbing. might have accidentally created file called -rf...)


Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User

sql server - "Configuration file does not exist", Event ID 274 - Super User