You've successfully subscribed to Tech news and tutorials for and by DevOps | Kopax
Great! Next, complete checkout for full access to Tech news and tutorials for and by DevOps | Kopax
Welcome back! You've successfully signed in
Success! Your account is fully activated, you now have access to all content.
How to neutralize or destroy your Linux operating system in one command

How to neutralize or destroy your Linux operating system in one command

> 1 min read

If you don't want to completely destroy your Linux system but just neutralize it, you can go with a fork bomb using the following command:

:(){ :|: & };:

This will create a process which will duplicate it self infinitely until the system crash.

If you are in a situation where you receive unwanted guest (like Kim Dotcom), you might want to quickly delete all your hard drive content in a safe way (Use a hammer and crash it) or a programmatic way.

If you have too many hard-drive, the programmatic way will do it. This command will write random data on your hard drive without worriying for a sec for files or partitions.

sudo dd if=/dev/random of=/dev/sda

Replace /dev/sda with the hard drive you wish to delete.

Don't use this just to test or worst, to have "fun"