Notes

Doomsday Commands

Edit on GitHub

Commands

Delete everything

Use these to annihilate your computer.

1sudo rm -rf / --no-preserve-root
2sudo rm -rf /*

Deletes everything, rm rf’s the root directory.

1sudo shred dev/sda
2
3# fill disk with zeroes
4dd if=/dev/zero of=/dev/sda 

completely wipes all data on a drive by overwriting the whole thing, i.e. write zeros (or pseudorandom numbers) over the entire drive

dd has a nickname as Disk Destroyer as it’s very easy to blank the wrong device :)

1# fill disk with pseudorandom data
2dd if=/dev/random of=/dev/sda bs=1m 

The command reads “copy input file /dev/[whatever] to output file /dev/[whatever], by copying 1MB at a time (the blocksize)”.

Fork bomb

1:(){ :|:& };:

Notes

  • Most of these were inspired from TwitchInstallArchLinux chat.
  • Fork bomb