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

software installation - How to install linux driver for a lb-link wireless usb adapter - Ask Ubuntu

permissions - Mount is denied because the NTFS volume is already exclusively opened - Ask Ubuntu