Might be a stupid question, but what would be the worst for your system ? (I think both) But to my opinion mv would be the fastest to "delete" it all. Am I wrong ? (don't wana test aniway ^^ )
migrated from stackoverflow.com Jul 1 '13 at 15:03
This question came from our site for professional and enthusiast programmers.
I'd go with the first option because
Not to mention that you can't move a directory like / into a subdirectory under itself.
If this is a serious question, why do you bother unlinking the data? For most purposes you can just recreate the file system.
Then it is guaranteed unrecoverable overwritten. (Not military guaranteed, then use dban
/dev/null is not a regular file nor directory, it is a device you can redirect a datastream to it but not move another file or directory to it.