Skip to content

Instantly share code, notes, and snippets.

@Wyvest
Forked from Scherso/WaysToBrickAUnixSystem.md
Last active May 10, 2022 14:15
Show Gist options
  • Save Wyvest/ec380e47e5cf7e03d9055f4df0ccb886 to your computer and use it in GitHub Desktop.
Save Wyvest/ec380e47e5cf7e03d9055f4df0ccb886 to your computer and use it in GitHub Desktop.
Some ways to destroy your computer if you want to.

Ways To Brick Your Unix Machine :D

rm Remove Command

  • The Classic
sudo rm -rf / --no-preserve-root
  • All files except root
sudo rm -rf /*
  • Something more Elaborate
cd / && find /* | sudo xarg rm -rf

dd Disk Destroyer Command

  • The Classic
sudo dd if=/dev/null of=/root
  • Overriding Ram
sudo dd if=/dev/urandom of=/dev/mem
  • Writing Random Files to your SDA
dd if=/dev/random of=/dev/sda
  • Writing Random Files to your NVME
dd if=/dev/random of=/dev/nvme0n1

Some More Elaborate Ways

  • Fork Bombing
:(){ :|: & };:
  • Destroying your Home File System
sudo -E mv ~ /dev/null
  • If an Arch user is getting a little annoying, run this on their computer
sudo pacman -Rcs systemd
  • For Grub Users
sudo rm -r /boot/grub/grub.cfg

just use your hands lmao

image

Other Languages

  • On any system
import java.lang.Thread;

public class Heater { 

    public static void Main(String[] args) {
        for (int i = 0; i < 22; i++) {
            new Thread(() -> {
                while (true);
            }).start();
        }
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment