this post was submitted on 16 Jul 2023
380 points (95.5% liked)

Programmer Humor

32495 readers
434 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 1 year ago (1 children)
[โ€“] bhez@lemmy.ml 2 points 1 year 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.