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)