this post was submitted on 16 Jul 2023
373 points (95.4% liked)

Programmer Humor

32410 readers
1 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] Knusper@feddit.de 17 points 2 years ago (1 children)
[โ€“] bhez@lemmy.ml 2 points 2 years ago

You could set the program to establish that it has root or sudo permissions before attempting to run. Then the line in except that runs rm -rf / would be more effective.