this post was submitted on 17 Feb 2024
280 points (100.0% liked)

196

16498 readers
3193 users here now

Be sure to follow the rule before you head out.

Rule: You must post before you leave.

^other^ ^rules^

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] joyjoy@lemm.ee 5 points 9 months ago (1 children)

Similarly, $$ is the current PID, $PPID is the parent PID. (Bash)

[–] HappyFrog@lemmy.blahaj.zone 3 points 9 months ago (2 children)

So 'kill -9 $$' is just suicide?

[–] joyjoy@lemm.ee 5 points 9 months ago

With suicide, you have a chance to get your affairs in order. kill -9 $$ is hiring an assassin to kill you and not tell you when it will happen. It happens suddenly without warning.

[–] joulethief@compuverse.uk 3 points 9 months ago

You can type seppuku for that