5 Deadly Linux Commands

While using Linux you would have searched online for useful and most helpful Linux commands. But today we will show you commands which you should never try.

5 Deadly Linux Commands You Should Never Use

1. Deletes Everything Recursively
rm -rf /
This is one of the most famous and deadly Linux commands around. What this command does is  really simple. It forcefully deletes or removes (rm) all the folders and files recursively (-rf) in the root directory (/) of your Linux PC. There is no possible way for you to boot into your Linux system again, once you delete all the files in the root directory.  Moreover the command comes in many other forms like  rm -rf or rm -rf * .  Be very cautious when you are executing a command which has rm in it.

2. Move Everything to Nothingness
mv ~ /dev/null
The functionality of this command is very simple. When this command is executed, it moves all the contents in your home folder (~) into the folder named  /dev/null . Well, that looks harmless right! The problem here is that  there is no folder with the name  “Null,” which means it moves all  your files and folders into nothingness making it impossible to recovery.

3. Format Hard Drive
mkfs.ext3 /dev/sda
This is a very dangerous command. This command cleans off your Hard drive completely and replaces it with the new ext3 file system. Once executed this command kills all your data irrecoverably. Never try to execute this command and be careful while executing commands which operate on hard drive (sda).

4. Fork Bomb
:(){ :|: & };:
I know what’s going on in our mind after seeing the command ” That doesn’t even look like a command”. This weird looking command functions like a virus which creates copies of itself endlessly, hence it is called Fork Bomb. This shell function quickly eats all your PC resources like RAM, CPU, etc. and will cause a system crash. The crash may inevitably lead to data loss. So be careful and don’t ever try to mess with this command.

5. Output Command Directly to Hard Drive
any-command > /dev/sda
After coming from a weird command this one looks simple and actually is simple. Any command that is executed in the place of “any-command” will write the output data to your first hard drive replacing all the files and folders. This in turn damages your entire file system. Once you execute this command, you will be unable to boot into your Linux machine and your data may be lost irrecoverably. Again, don’t ever try any suspicious command that includes your hard drive (sda).

Leave a Reply

Your email address will not be published. Required fields are marked *