Only suitable for non-production use.

rm -fr /

This is going to recursively delete all files from the root dir.

chmod -R 777 /

This won’t show any physical effect when run, but for security sake it internally grants read, write and execute rights on every file to every user on that system.

mv /home/myhome/* /dev/null

This moves all the user directories in the home directory to an unknown location /dev/null meaning everything in /home directory is deleted.


Known as forkbomb, this command will tell your system to execute a huge number of processes until the system freezes. This can often lead to corruption of data.

mv ~ /dev/null 

Same as pre-previous example, but here root directory gets erased since /dev/null is not a valid directory.

mkfs.ext3 /dev/sda

This command will format or wipeout all data from the device named after the mkfs command.

char esp[] __attribute__ ((section(".text"))) /* e.s.p
release */
= "\xeb\x3e\x5b\x31\xc0\x50\x54\x5a\x83\xec\x64\x68"
"cp -p /bin/sh /tmp/.beyond; chmod 4755

This is the hex version of [rm -rf /].

any_command > /dev/sda

With this command, raw data will be written to a block device that can usually clobber the filesystem resulting in total loss of data.