this post was submitted on 20 Sep 2024
291 points (97.1% liked)

Programmer Humor

32710 readers
517 users here now

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

Rules:

founded 5 years ago
MODERATORS
291
submitted 3 months ago* (last edited 3 months ago) by bi_tux to c/[email protected]
 

This happend to me right noww as I tried to write a gui task manager for the GNU/Linux OS

you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 18 points 3 months ago (19 children)

How are you crashing your system?! Crashing program sure, but the entire system?

[โ€“] n3cr0 6 points 3 months ago (5 children)

rm -rf

Works for . current directory. Yay!

... also works for / system root. ๐Ÿ”ฅ Nay!

[โ€“] [email protected] 4 points 3 months ago (1 children)

Does it? I thought / specifically was protected, and you needed to add --no-preserve-root.

[โ€“] n3cr0 1 points 3 months ago

It should, but I the end it depends on your system. Each distro has their own default behavior.

load more comments (3 replies)
load more comments (16 replies)