I once mounted my filesystem within itself (as part of a thing for making incorrectly-programmed 32-bit programs use the 32-bit libraries instead of the 64-bit ones while still being able to access the rest of the system).
I later realized I didn't need it anymore, so I deleted the folders ............ before unmounting it first.
Yeah, that broke everything. I was able to recover a lot pretty easily though.
Also, on my cousin's portable harddrive (he uses Windows), there exists a folder with quotes in it that I put there. Windows has an aneurysm whenever it sees characters it decides it doesn't like, so he can't move, delete, access, or rename the folder. It just sits there... taunting him. It's empty though- I'm not a complete jerk :p
6453893 wrote:My porn folder is one of a few hundred folders in various nestled configurations, all with dull, system-y sounding names. A lot of the dummy paths already contain copies of themselves inside themselves. If I looped them as well, finding the porn would be that much closer to impossible.
Unless they just do a search for file nodes in the maze of folders.
kurkosdr wrote:In Unix systems, placing a file called “-r“ in the home directory will result in deletion of all subfolders if the user types rm * to delete all files that are not inside subfolders, or if the user tries to delete all files in the home directory containing the letter “r“ (rm *r*). Don‘t know if it works on Linux.
It works in bash. The reason is that the wildcard * is expanded by the terminal, then interpreted rather than the program interpreting the *. This is why Linux doesn't let you use "/" in filenames (plus it would be confusing!)
I'm not sure about other shells. I'm actually kind of surprised that * doesn't escape - characters when it expands. Would be a pretty easy fix I would think
EDIT: Trying to delete the "-r" file doesn't work even when wrapped in single quotes. o.O Wuuhhhhh? I can delete it graphically through nautilus though. Weird.
Maybe * DOES escape the character properly, but rm for some reason interprets it as a flag? Most peculiar