Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Lowkey compared to some here.

A friend of mine was hit with a "prank" that created a directory hierarchy so deep the OS couldn't get down to the lowest levels of it. Not even `rm -rf` would work, and I couldn't `cd` to the lower levels to start deleting things one at a time.

I realized I could `mv` the top level directory to a sibling of its head, rather than to the child of it, cd into that, delete all the files, then do the same with any subdirs. So I was able to script that and started deleting the files/dirs from the top, rather than the bottom up. Took a while, but worked.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: