Most Deadly Linux Commands

Here are some reasons why you should never log in as root unless you have a specific task.

List topic started by biddit's List biddit
You are viewing biddit's version of this list.
  • 1.

    rm -fr /

    Probably the simplest way to hose your system. It recursively deletes all files from the root of your filesystem.
  • 2.

    dd if=/dev/zero of=/dev/sda

    Copies nothing over the entire contents of your disk.
  • 3.

    ls > /dev/sda

    The > redirects raw output, and in this case, to your hard disk, effectively corrupting and destroying the filesystem. 'ls' is used here, but any command can be used.
  • 4.

    mv /home/* /dev/null

    Moves all the user directories to the great black hole known as /dev/null. (effectively deleting them)

    Did you know you can EDIT it?

    You can also comment on the discussion board for this list.

  • 5.

    chmod -R 777 /

    Grants read, write, and execute rights to every file for every user.
  • 6.

    mkfs /dev/sda

    Creates a new filesystem on the target. That is to say that it reformats your hard drive.
  • 7.

    :(){ :|:& };:

    This is a forkbomb. It forks processes until your system grinds to a halt.