DEV Community

Temuri Takalandze
Temuri Takalandze

Posted on

πŸš€ What is a Bash Fork Bomb?

Image description

A tiny but deadly command that can crash a Linux system in seconds! 🀯

This tiny Bash script is a fork bombβ€”a self-replicating function that keeps creating processes until the system collapses. It’s a great example of how recursion can go out of control!

πŸ’‘ How to stay safe?
βœ… Limit user processes with ulimit
βœ… Restrict execution permissions
βœ… Monitor system resource usage

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay