Viewing a single comment thread. View all comments

AnExoticOrange t1_j9nqcqa wrote

I remember my school days. I spent long evenings in 5pm code club, working on an app with other students. When I first joined, I watched a senior project his screen onto the whiteboard, open his terminal, and jokingly propose to enter “rm -rf .”. The older geeks were snickering.

I knew little about computers at the time and asked, “What does that do?”

“It deletes the directory’s contents,” he told me. “Be careful with it.”

“Oh.” I nodded, pretending to understand.

Almost a decade later, I know exactly what he meant.

But I’ve always been a curious, chaotic gremlin.

I blink. “rm -rf .”

Edit: I’m not sure if morse code supports “-“

15

techno156 t1_j9oszh4 wrote

> Edit: I’m not sure if morse code supports “-“

It does, surprisingly. But as -....-, at least, in international Morse.

Minor nitpicking, but rm -rf won't do anything as it is, since there's nothing to tell it what to delete. The -r tells it to go through each folder in the specific location, and the -f tells it to ignore non-fatal errors/safety protocols (such as the file being marked as something not to be deleted), and proceed anyway.

4

AnExoticOrange t1_j9ot9gg wrote

Thanks for catching that! I added a period for current directory. I assume that should work?

3