Deadly Commands on Linux

Deadly Commands on Linux
March 21 10:51 2017 Print This Article

If you just want to be engaged in software testing (either mobile testing or web testing), you should know that much improper information is available on various sites. It is relevant for ecommerce testing, IoT checking procedure, game testing, etc.

Also, the Internet is full of jokes for new Linux users. Trolls recommend you to run some commands that are “useful”. But in fact, they will damage your data or freeze your computer. You should not run them at all.

What Are the Deadly Commands on Linux?

  • rm –rf / if you ran this command, the system will delete all your files on a hard drive and data on connected devices. And you will not be prompted about that. This command can also be modified, and the system can delete some specified files. For example, rm rf ~ is used to delete all files in a home folder; rm * to delete all configuration files.
  • :(){ :|: & };: this short code line can reproduce itself ‘at an exponential rate’. As a result, your CPU memory and time will be fully taken up.
  • ext4 /dev/sda1 – this command will format a hard drive. It will create a new file system, and all files on the first partition will be wiped. As a result, your system files are damaged.
  • mv ~ /dev/null – this command will move the files to another location – to a black hole.
  • wget -O – | sh – this command will download the script from some website and run it. And God knows what its content is.
  • dd if=/dev/random of=/dev/sda – this line also will damage the data on your hard drives. It will replace your files with random garbage data.

It is not a full list of deadly commands on Linux. To run some of these commands on Ubuntu, you should add a prefixed sudo. For other Linux distributions, the commands should be run as root.

Related Posts:

  • No Related Posts

About Article Author

view more articles
Nataliia Vasylyna
Nataliia Vasylyna

View More Articles