How does one delete a directory filled with files and other subdirectory permanently, bypassing the trash, from the command line in OS X?
- by Jon
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