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

debian - Kali Linux - Debootstrap error Failed to determine codename for the release - Super User

crash - Windows Rundll32 (child process of DllHost) is crashing. How can I even identify it? - Super User

Windows XP installation, no previous version of Windows NT - Super User