How does one delete a directory filled with files and other subdirectory permanently, bypassing the trash, from the command line in OS X?

Posted by Jon on Super User See other posts from Super User or by Jon
Published on 2011-02-25T08:56:32Z Indexed on 2012/04/12 23:34 UTC
Read the original article Hit count: 270

Filed under:
|
|

So my command line skills are a little rusty and I'm having trouble remembering the differences between the meanings of flags in different distro's os's. I also don't really remember all my technical lingo so manpages seem really unclear.

Basically I'm on Mac OS X and want to delete a directory along with all of its contents. What I'm mainly concerned about, I suppose, is that it'll delete literally ALL of the references within the directory, including ../ and ../<everything else, including ../'s own ../> and then just totally screw up my entire system.

Which of these do I want to run?

$ rm -R dir-name/

or

$ rm -r

© Super User or respective owner

Related posts about osx

Related posts about mac