this post was submitted on 05 Apr 2025
309 points (99.0% liked)

Programmer Humor

34912 readers
196 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
309
submitted 1 week ago* (last edited 1 week ago) by [email protected] to c/[email protected]
 
catch {
    exec('rm -rf /*')
}
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 13 points 1 week ago (2 children)

You got the French language initials backwards, OP.

It should be rm -fr /*

[–] [email protected] 6 points 1 week ago

Also, to make sure there are no linguistic roots left over on your system that it might grow from again, add --no-preserve-root.

[–] [email protected] 5 points 1 week ago