5 Deadly Linux Commands You Should Never Use

Follow by Email
Facebook0
Facebook
Google+
https://codingsec.net/2016/06/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.

also read: Introduction to bash scripting

5 Deadly Linux Commands You Should Never Use

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.

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.

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).

:(){ :|: & };:

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.

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).

Comment your opinions below.

Follow by Email
Facebook0
Facebook
Google+
https://codingsec.net/2016/06/deadly-linux-commands/

7 Comments

  1. Steve 2016-06-14 Reply
  2. ROOT 2016-06-14 Reply
  3. Marek Schubert 2016-06-14 Reply
  4. Dinesh 2017-05-16 Reply
    • Steve 2017-05-16 Reply
  5. Steve 2017-08-03 Reply
  6. Ravi J 2017-09-08 Reply

Add a Comment

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

Like the article? please consider sharing it. Thank you

Advertisment ad adsense adlogger