this post was submitted on 31 May 2025
942 points (99.1% liked)

Programmer Humor

23626 readers
811 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 23 points 3 days ago (2 children)

It should have done sudo rm -rf /*

[โ€“] [email protected] 30 points 3 days ago (1 children)

For when you want to delete everything in the root directory, but absolutely need to keep the directory itself.

[โ€“] [email protected] 7 points 3 days ago
[โ€“] [email protected] 19 points 3 days ago* (last edited 3 days ago)

So. Funny story. Back when I was incredibly new to Linux, I was trying to move everything from my downloads folder to somewhere else. So I navigated into the downloads directory on the command line and sent something like

"sudo mv /* ~/misc"

when I meant to type

"sudo mv ./* ~/misc"

Yea... That was a fun learning experience and hilarious way to utterly fuck everything on that machine. Luckily it was just an old laptop I'd installed Linux on to mess around and learn, no real damage done