5 Deadly linux commands list

Linux today is well known and well reputed one of the most powerful operating system. Linux user can perform numerous such tasks that a windows or Mac user can’t even imagine.

deadly linux commands list

Sometimes Linux can go extreme upto the extent that it can do serious damage to the system.

Linux system dont even ask user for confirmation once the command is given and simply performs its task.
of your computer within a few seconds.

 Because of these harmful activities of linux it is recommended to use it only if you are good at giving commands and have in depth  knowledge oflinux commands list.

5 Deadly linux commands list that can Destroy one’s System

1. Command > rm -rf / = It will Delete Everything

Explanation : It is a combination of three keywords.

First is : rm It will remove all the files followed by this command.

Second is : -rf This will run rm command in more effective way and will remove everything ( all files and folders inside the specified folder )without asking confirmation from the user.

Third is : / This will start removing the data from the root directroy and will delete everything from the computer including the data of removable media.

2. Command > :(){ :|: & };: = Shell function that gets repliacated.

This command creates a shell function , which once get initialized starts to create multiple copies of itself.It results in taking quickly all the memory and power of CPU.It makes computer freeze or not responding. This is also known as Denial Of Service Attack.

3. Command > mkfs.ext4 /dev/sda1 = This command will format the hard disk

Explanation : This command is again composed of two keywords.

First is : mkfs.ext4 : This part of command will create a new ext4 file system on following device where this command will get executed.

Second is : /dev/sda1 ;This part of command specifies the 1st partition on the first hard disk which is probably in use by the user. Similarly, This Command > mkfs.ext3 /dev/sdb2 will Format the second partition on the second hard disk with ext3 File system.

4. Command > /dev/sda – Write Any content Directly to a Hard Drive.

Explanation : This command will execute normally as other commands in linux do. But output of this command will directly be sent to the file system (NTFS or FAT ) of the Hard Drive. It will result into damaging the file system of the computer.

5. Command > mv ~ /dev/null – Beware it Will Move your Home Directory To Black hole.

Explanation : Moving any of your content and data to following path : /dev/null means you want to destroy it.

It means /dev/null is a black hole where once anything sent , can not be recovered back.

Note:Many of these commands will only be dangerous if they’re prefixed with sudo on Ubuntu – they won’t work otherwise. On other Linux distributions, most commands must be run as root.

So these were 5 Deadly linux commands list that you must never try them on your system


  1. Reply Raj September 16, 2013 at 5:09 pm

    How to install antivirus on ubuntu 13.04????

    • Reply Pawan Kumar October 25, 2013 at 7:49 pm

      Ubuntu doesn’t need antivirus. There are very few viruses for linux systems which are old and can’t do anything really serious. These viruses are just the pieces of code that exploit a particular loophole in the system. But these can’t work when patches/updates for that loophole are installed. Since linux is open source and community driven, these loopholes are patched very quickly. So there’s really no need for installing any antivirus.
      But if you are feeling really paranoid, you can install ClamTk Antivirus for peace of your mind. :)

Leave a reply